0
I’m having trouble solving this
function main() { var age = parseInt(readLine(), 10) // Your code here var x = 18; // age >= x will return true }
1 Odpowiedź
0
">=" is not an assignment operator. It is a conditional operator.
So, if you want, age >= x to return true.
You must use an if condition, or you must specify the datatype of age as a boolean, or print it.