+ 1
please rearrange this JavaScript code for me
this is another coding app and I need help at this lesson. as there was no option for upload photos therefore i have to share a link where I put my screenshot of this problem https://photos.app.goo.gl/SW6sB87fUoBbyLgB6
5 Respuestas
+ 1
The order of the lines seems to be good.
if (name.length > 5)
should be
if (name.length() > 5)
And if you like you can add a space to "Robin"
https://code.sololearn.com/c5D4L0rmVUaV
but I guess that is not why the answer is not accepted
+ 1
but look here. length is not a method in JavaScript. it's a property
https://photos.app.goo.gl/KWSUQ6kHrXj86Cx4A
+ 1
Correct I have mistaken JavaScript for Java.
In Java it is a method
+ 1
Is it just the order which is being checked ?
+ 1
I think the app that I am using maybe has a bug