+ 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

16th Oct 2018, 7:42 PM
Zawad Abu
Zawad Abu - avatar
5 Answers
+ 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
16th Oct 2018, 8:01 PM
sneeze
sneeze - avatar
+ 1
but look here. length is not a method in JavaScript. it's a property https://photos.app.goo.gl/KWSUQ6kHrXj86Cx4A
16th Oct 2018, 8:16 PM
Zawad Abu
Zawad Abu - avatar
+ 1
Correct I have mistaken JavaScript for Java. In Java it is a method
16th Oct 2018, 8:18 PM
sneeze
sneeze - avatar
+ 1
Is it just the order which is being checked ?
16th Oct 2018, 8:19 PM
sneeze
sneeze - avatar
+ 1
I think the app that I am using maybe has a bug
16th Oct 2018, 8:20 PM
Zawad Abu
Zawad Abu - avatar