#1
  1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Red face Help with a very simple learning exercise please.


    Hi

    I am working through some exercises at Codeacademy to teach myself some basics. I'm stuck at the exercise regarding Console.Log

    when I enter this -

    console.log(15>=4);
    console.log("Xiao Hui".length<=122);
    console.log("Goody Donaldson".length>=8);
    console.log(8*2=16);

    I should return all four as True, and what would the console.log bit look like anyway? The error it's returning from the exercise is "It looks like the first console.log() call didn't return true." Even if I just leave the last line, it has the same error - and there is a note in the script box itself that says "bad left hand of assignment". Huh?

    Narelle
  2. #2
  3. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0
    Sorry, even tried putting spaces in - like
    console.log("Xiao Hui".length <= 122);

    same issue.
  4. #3
  5. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0
    Solved!

    Needed ===

    not =

    sorry.

Similar Threads

  1. Too Much Exercise Can Be Bad for the Heart
    By RSS_News_User in forum Science News
    Replies: 0
    Last Post: June 5th, 2012, 11:00 AM
  2. Challenging exercise
    By danielvo in forum Visual Basic Programming
    Replies: 0
    Last Post: September 26th, 2011, 11:31 PM
  3. GM IPO grows to $23B with overallotment exercise (AP)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: November 26th, 2010, 07:00 PM
  4. GM IPO grows to $23B with overallotment exercise (AP)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: November 26th, 2010, 04:00 PM
  5. Simple SQL problem from a simple Access user
    By Mir72 in forum Microsoft Access Help
    Replies: 2
    Last Post: May 26th, 2004, 09:53 AM

IMN logo majestic logo threadwatch logo seochat tools logo