JavaScript lies at the heart of almost every modern web application, from social apps like Twitter to browser-based game frameworks like Phaser and Babylon. Though simple for beginners to pick up and play with, JavaScript is a flexible, complex language that you can use to build full-scale applications.
console.log("5" - 1) outputs 4
and console.log("5" + 1) outputs 51
? How can you prevent automatic type conversion when comparing values? (pages 18-19)NaN == NaN
return false? (page 17)What is the meaning of “lexical scoping”? (p. 42) What is the access limit for variables declared using the keywords “var”, “let”, and “const” in the lexical scope? (p. 41)
What is the meaning of “call stack”? (p. 45) What is an example of “function definition” vs “function call”? (p. 39)
How does this chapter define “closure”? (p. 48) How would you explain it in your own words?
What is “function recursion”? What are some pros and cons of using recursive functions? (p. 49)
Zoom Whiteboard (Share your screen with your solution and walk the group through your logic).
Text: "'I'm the cook,' he said, 'it's my job.'"
Output: "I'm the cook," he said, "it's my job."
EXERCISE 1 "SHAPES" (p. 306) Feel free to try exercise 1 from chapter 17. If you have a solution for one or more shapes, you can screen share and walk the group through your steps. Otherwise, we’ll go through the solution from the book together.