Change all snippets from var to const

This commit is contained in:
Jorge Gonzalez
2017-12-12 07:11:37 -05:00
parent 67f83c63d9
commit f4b2dc150e
33 changed files with 35 additions and 35 deletions

View File

@ -4,7 +4,7 @@ Use `performance.now()` to get start and end time for the function, `console.log
First argument is the function name, subsequent arguments are passed to the function.
```js
var timeTaken = (f,...args) => {
const timeTaken = (f,...args) => {
var t0 = performance.now(), r = f(...args);
console.log(performance.now() - t0);
return r;