What keyword creates a class in JavaScript?
class
What does JSON stand for?
JavaScript Object Notation
What method attaches an event listener to an element?
addEventListener()
What does API stand for?
Application Programming Interface
Which storage keeps data even after the browser is closed?
localStorage
What is the special method that initializes new objects in a class
constructor
Which built-in method converts a JSON string to a JavaScript object?
JSON.parse()
What event type fires when a button is pressed with the mouse?
"click"
Which browser API gets the user’s current geographic location (with permission)?
Geolocation API
Which storage is cleared when the browser tab is closed?
sessionStorage
What keyword is used to create an instance (object) from a class?
new
Which built-in method converts a JavaScript object to a JSON string?
JSON.stringify()
What event type fires when a key is pressed down on the keyboard?
"keydown"
Which API works with the browser’s local database of key/value pairs for a site?
Web Storage API (localStorage / sessionStorage)
What method stores a value in localStorage?
localStorage.setItem(key, value)
The variables inside a class that belong to each object are called what?
Properties / fields
Why is JSON commonly used with web APIs?
It’s lightweight, easy for humans to read, and easy for programs to parse
What is an event handler?
A function that runs in response to an event
Why are charting APIs or libraries useful?
They make it easier to display data as charts and graphs without writing all the drawing code
What method gets a value from localStorage?
localStorage.getItem(key)
What is inheritance in classes?
When one class extends another and gains its properties and methods
Which two data formats are commonly mentioned for exchanging app data?
JSON and XML
What is event bubbling?
When an event starts at the target element and propagates up through ancestor elements
What does the Fetch API do?
Lets you make network requests (like HTTP) from JavaScript
Which type of data is best for local/session storage: raw objects or strings?
Strings (often JSON strings of objects)