- Total Members: 220,025
- Threads: 525,387
- Posts: 976,997
-
January 3rd, 2013, 10:39 PM
#1
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
-
January 3rd, 2013, 10:42 PM
#2
Sorry, even tried putting spaces in - like
console.log("Xiao Hui".length <= 122);
same issue.
-
January 3rd, 2013, 11:24 PM
#3
Solved!
Needed ===
not =
sorry.
Similar Threads
-
By RSS_News_User in forum Science News
Replies: 0
Last Post: June 5th, 2012, 10:00 AM
-
By danielvo in forum Visual Basic Programming
Replies: 0
Last Post: September 26th, 2011, 10:31 PM
-
By RSS_News_User in forum Business News
Replies: 0
Last Post: November 26th, 2010, 06:00 PM
-
By RSS_News_User in forum Business News
Replies: 0
Last Post: November 26th, 2010, 03:00 PM
-
By Mir72 in forum Microsoft Access Help
Replies: 2
Last Post: May 26th, 2004, 08:53 AM