You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You generate random numbers several times in your code, it might be nice to abstract that out into a function.
e.g.
randomVal = Math.ceil(Math.random() * 15);
becomes...
import {randInt} from "./utils.js"
randomVal = randInt(15).
The text was updated successfully, but these errors were encountered:
You generate random numbers several times in your code, it might be nice to abstract that out into a function.
e.g.
randomVal = Math.ceil(Math.random() * 15);
becomes...
import {randInt} from "./utils.js"
randomVal = randInt(15).
The text was updated successfully, but these errors were encountered: