Need A Lot of Assistance From An Actual js Dev

(BASHES HEAD AGAINST DESK.)

I know this… Why didn’t I notice… UGH. I guess I should have just stepped away and came back to it. Ugh… Now I feel REALLY dumb. The author doesn’t mention it in his book but, I remember it from other books I’ve read.

What if I need to increment more than 1 at a time? Do I just add more + symbols? Or I just need to do the long form like n = n + 2?

I know about the arithmetic use and the concatenation use. But… The others…

output = output + “Fizz” to me makes perfect sense…

output += “Fizz”… That makes sense now that you’ve explained it. Wish the author explained it before using it. Lol.

What? You lost me.

I think I remember him mentioning this in the chapter I read.

The example I think he gave was something like this…

“dog” === “cat”
and it evaluates to false since the strings aren’t identical and it’s looking for an exact match.

“dog” !== “cat”
and it evaluates to true since they are the inverse of the previous example.

Did I remember that correctly?

0 is true and false? You lost me again.

The author mentioned this in the first chapter. So far it seems the info in the book is great it’s just the author’s examples that are causing confusion.

Yes! ok! That is much easier to understand and read. Kinda wish the author gave me that instead Lol.

Omg yes. COMMENTS! Why the author didn’t provide his example like that is beyond me.

Ok so anytime I am going to invoke a for loop I need to follow the following syntax…

for ( declare variable and assign a value ; ( Don’t really know what you would call this part ); Index Counter Increment. )

In the author’s example there are no if’s, did he use some sort of shorthand method or something?

Good to know I am not the only one. Lol. After I typed up my question I went to the ECMA’s website and downloaded the latest ECMAScript Language Specification and started reading the section on for loops. Lol.

Unfortunately, it seems they also have an issue with describing things in such a way that a non-engineer can actually understand what was written. Lol. I tried to read the syntax it provided but, it wasn’t very clear and they do not provide any examples so it’s difficult to understand what they are trying to say. I am sure if I read the spec from start to finish it would make sense but, right now, I just don’t have the time for that.

3 Likes