Duration of setInterval

I created a simple function which counting value from 0 to some value during 3 sec. Here is fiddle – https://jsfiddle.net/ar6akv5z/ and snippet: var number = document.querySelector(‘.number’); …