+ 2

Code coach

I need help solving this !! https://code.sololearn.com/c1jALSePPz7c/?ref=app

12th Sep 2022, 1:19 PM
Emmanuel Pena
8 Answers
+ 2
Emmanuel Pena Java != JavaScript
12th Sep 2022, 2:01 PM
A͢J
A͢J - avatar
+ 2
// Emmanuel Pena console.log(age >= 18)
12th Sep 2022, 3:35 PM
JaScript
JaScript - avatar
+ 2
function main() { var age = parseInt(readLine(), 10) console.log(age >= 18) }
12th Sep 2022, 7:11 PM
JaScript
JaScript - avatar
+ 1
You have to use the user input, the variable age, and with it calculate the result.
12th Sep 2022, 1:28 PM
JaScript
JaScript - avatar
+ 1
Why are you having JavaScript code in a Java file?
12th Sep 2022, 1:44 PM
Jan
Jan - avatar
+ 1
I need to find the age
12th Sep 2022, 3:19 PM
Emmanuel Pena
+ 1
What line of code should i write right before that ?
12th Sep 2022, 3:38 PM
Emmanuel Pena
0
function main() { var age = parseInt(readLine(), 10) // Your code here console.log (age>=18) }
12th Sep 2022, 11:08 PM
Srishty M
Srishty M - avatar