+ 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 Respuestas
+ 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