I’m just starting the book, in the chap1 -> mini exercises :
« Create a constant called testNumber and initialize it with whatever integer you’d like. Next, create another constant called evenOdd and set it equal to testNumber modulo 2. Now change testNumber to various numbers. What do you notice about evenOdd? »
testNumber can’t be a constant, it must be a variable , no ?
@phil Thanks very much for your question!
If it’s asking you to create a constant, that means you have to use “let”. So this means:
let testNumber = 3
When it asks you to change testNumber to various numbers, you simply change the number 3 in my example to any other number you wish
I hope this helps!
All the best.
This topic was automatically closed after 166 days. New replies are no longer allowed.