b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Off Topic » Post 1496083 | Search
This is a question Off Topic

Are you a QOTWer? Do you want to start a thread that isn't a direct answer to the current QOTW? Then this place, gentle poster, is your friend.

(, Sun 1 Apr 2001, 1:00)
Pages: Latest, 837, 836, 835, 834, 833, ... 1

« Go Back | See The Full Thread

Don't do it stictly, there is no need for that, a simple == is better and less likely to error.
But I don't understand the question entirely, "this" will never equal "that", unless you change "this" into "that" when declaring it or afterwards, such as

var word = "this";
word = "that";
if (word == "that") { console.log("word is equal to that"); }


Or


var word = "that";
if (word === "that") { console.log("word is equal to that"); }


The question they're doing is like saying "Change the sentence 'hello world' into 'goodbye world' " and then just awnsering "Change the world 'hello' to 'goodbye' ".
(, Wed 11 Jan 2012, 21:04, Reply)

« Go Back | See The Full Thread

Pages: Latest, 837, 836, 835, 834, 833, ... 1