Explore Variables, Types, and Collections
After completing this unit, you’ll be able to:
- Write code to create variables and initialize them correctly.
- Utilize strings, numbers, and dates effectively.
- Demonstrate awareness of type coercion and its effects.
- Distinguish truthy or falsy evaluations.
- Demonstrate data manipulation with arrays.
- Demonstrate how to operate the JSON object.
- Strings, numbers, and dates
- Type coercion
- Truthy or falsy evaluations
- Data manipulation with arrays
- JSON objects
The unit also contains interactive flashcards centered around study topics that help you prepare for the Variables, Types, and Collections section of the exam.
Download the Guide
Exam Practice Questions
Ready to jump in? The sample tool below is not scored—it's just an easy way to quiz yourself. To use it, read the scenario, then click the answer you think is correct. Some questions may have more than one correct answer. Click Submit to learn whether the answer you chose is correct or incorrect, and why. If there’s a longer explanation, click to expand the window, then click anywhere in the window to close it. When you reach the end, you can review the answers or retake the questions.
Did you get a scenario wrong? Check out the table below for related study material.
MDN web docs to better understand string creation and manipulation.
||Study up on how to
Exam Topic Flashcards
The following flashcards cover Variables, Types, and Collections. Use these interactive flashcards to brush up on some of the key topics you’ll find on this part of the exam.
Read the question or term on each card, then click or tap the card to reveal the correct answer. Click the right-facing arrow to move to the next card, and the left-facing arrow to return to the previous card.
Did you get a flashcard wrong? Check out the table for related study material.
||Study up on data types by reviewing
MDN web docs: Data types.
||Research the different keyed collection types with
MDN web docs: Keyed collections.
template literals to understand the benefits they offer.
Looking for more information? Explore these related badges.
You’ve reviewed Variables, Types, and Collections. Next, let’s take a look at Objects, Functions, and Classes.