Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Last active Oct 5, 2021
Embed
What would you like to do?
let target = Math.random();
// At this point target will be a number in the range 0 to 1
// (you can verify this by running the program several times
// and checking the output)
// Your task is to create a new variable and write code that assigns it a value between 0 and 6 and use console.log to print the value.
console.log(target);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment