Test 1 Study Guide
The first test of the course covers Module 1: Client & Server-side Scripting. You can review the material on the following pages:
- Client & Server-side Scripting (Overview)
- Introduction to JavaScript
- Functions in JavaScript
- Introduction to Node.js
- JavaScript and Runtimes
- The DOM & JavaScript in the Browser
Key Concepts
In addition to reviewing the content above, you should feel comfortable answering the following questions:
- What is the difference between client-side and server-side code?
- What is a JavaScript runtime, and why does JavaScript need one?
- Name the two main JavaScript runtimes used in this course, and describe how they differ.
- What is the difference between
let,const, andvar? Which do we use in this course, and why? - Can the contents of an array declared with
constbe modified? Why or why not? - What is the difference between
==and===in JavaScript? Which should you use by default? - What happens if you call a JavaScript function with fewer arguments than it has parameters?
- What is the difference between a parameter and an argument?
- What does
npmstand for, and what is it used for? - What is the DOM, and how does it differ from the HTML source file?
- Why does
document.getElementById()work in a browser but not in Node.js? - Why should
<script>tags be placed at the bottom of the<body>? - Describe what happens when a user clicks a button that has an event listener attached to it.