+ 2
Boolean operators, exercise: find the adults.
Hi, im having troubles with this exercise I donât know whatâs wrong with my code, it pass 3 of the 5 tests for itself but I donât know why it doesnât pass all tests. function main() { var age = parseInt(readLine(), 10) // Your code here var age = 21; var olderEnough = 18; var validate = (age >= olderEnough); console.log (validate) } Can someone help me please!! :(
3 Respostas
+ 3
You probably shouldn't overwrite the input in the age variable.
+ 2
I fixed that but isnât works anyway x(
0
So update your code in the question