diff --git a/snippets/measure-time-taken-by-function.md b/snippets/measure-time-taken-by-function.md index 0bae09591..254243c56 100644 --- a/snippets/measure-time-taken-by-function.md +++ b/snippets/measure-time-taken-by-function.md @@ -6,7 +6,7 @@ First argument is the function name, subsequent arguments are passed to the func ```js var timeTaken = (f,...args) => { var t0 = performance.now(), r = f(...args); - console.log({performance.now() - t0); + console.log(performance.now() - t0); return r; } ```