+ 3
Good day to all. I have a problem with the "Set a world record" task. What is missing in my code??
var height = parseFloat(readLine(), 10) if (height > 2,45){console.log ("new record");} else {console.log ("not this time");}
5 Antworten
+ 3
To write doubles or floats in programming you use a period (.) and not a comma (,).
+ 3
2,45 comma operator ?
2.45 use period or dot operator
please tag the language also.
+ 3
Thank you so much. I've already broken my head)
+ 1
var height = parseFloat(readLine(), 10)
//your goes code here
if(height<= 2.45){
console.log("not this time")
}else{
console.log( "new record")
}
- 1
var height = parseFloat(readLine(), 10)
//your goes code here
if (height > 2.45 ){
console.log("new record");
}else {
console.log("not this time")
}