Free Online Flashcard Deck

5 JavaScript Fundamentals Free Online FlashCards

Study 5 JavaScript Fundamentals with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What role does JavaScript play in a browser?

Back

JavaScript is the programming language browsers use to add behavior to web pages.

02
Front

Name common JavaScript value types.

Back

Common JavaScript values include numbers, strings, and booleans. Arrays, objects, and functions are also values.

03
Front

How do `null` and `undefined` differ?

Back

`null` represents an intentional absence of a value; `undefined` often means a value has not been assigned.

04
Front

What does it mean that JavaScript is dynamically typed?

Back

JavaScript is dynamically typed: a variable can hold values of different types at different times.

05
Front

What can `+` do with numbers and strings?

Back

The `+` operator adds numbers, but joins strings together.

06
Front

What does `===` test in JavaScript?

Back

`===` checks whether two values are equal without converting their types first.

07
Front

When should you use `const` versus `let`?

Back

Use `const` when a variable binding will not be reassigned, and `let` when it needs to change.

08
Front

What is the scope of `const` and `let`?

Back

`const` and `let` are limited to the surrounding block, the code enclosed in `{ }`.

09
Front

Can a `const` object or array have its contents changed?

Back

A `const` binding cannot be reassigned, but an object or array it refers to can still have its contents changed.

10
Front

What is a JavaScript function for?

Back

A function groups instructions so they can be run by calling it, helping make actions reusable.

11
Front

How do function parameters and arguments differ?

Back

A parameter is the function's named input; an argument is the value supplied for it in a function call.

12
Front

What does `return` do in a function?

Back

`return` sends a value back and ends that function call. A function without a return value evaluates to `undefined`.