Jump to content

Help With this?


jamesboy27

Recommended Posts

I'm clueless in JavaScript, so I'm guessing:

  1. "Amerifat" is not a String type, thus; you can't return its length. I say this because, in Java, you define a String by String, not var.
  2. length; is not the correct way of returning the String's length. I say this because, in Java; you get the String's length with length();
Edited by liverare
Link to comment
Share on other sites

  • 2 weeks later...
  On 11/17/2013 at 2:26 PM, Cyro said:

i dont do JavaScript, but from what i know i would guess

that #log() is a void or another type of method

just like println() in Java and that should be

...

console.log(myCountry.length);

console.log(myCountry.substring(0,3));

...

This one's correct, you've misplaced the ")"

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...