+ 1

Bug, or performance.now() is not supported in code playground? [Solved]

So I was trying to make a function that finds Nth Fibonacci number and displays the time it took to do the calculation, but it gives me an error "performance is not defined" I've used the same code on PC with Node.js and it works without giving any error. https://code.sololearn.com/c8zt9p8b3sIz/?ref=app

9th Mar 2022, 10:45 PM
Aleksandar Aleksovski
Aleksandar Aleksovski - avatar
2 Respuestas
+ 4
// Add it be4 your code const { performance, PerformanceObserver } = require('perf_hooks');
9th Mar 2022, 10:55 PM
SoloProg
SoloProg - avatar
9th Mar 2022, 10:56 PM
SoloProg
SoloProg - avatar