0

Is this code correct for Find the adults at JavaScript course

function main() { var age = parseInt(readLine(), 10) // Your code here } if age >= 18 console.log("true") else console.log("false")

2nd Jul 2022, 9:30 AM
CHONG ZI XU Moe
CHONG ZI XU Moe - avatar
1 Answer
+ 2
If you don't pass the test cases, it is likely that the code is NOT correct. If you need help, please mention the task description/ task number.
2nd Jul 2022, 9:37 AM
Lisa
Lisa - avatar