FlashKeepers

JavaScript · JavaScript · College and University

JavaScript Basics: Syntax and Data Types

Core JavaScript variable declarations, data types, and operators explained with a short example each.

About this set

38 basic cards for JavaScript JavaScript. Set 2 of 2 in JavaScript Basics. It opens with "What keyword declares a variable with block scope that cannot be reassigned?" and "What keyword declares a variable with block scope that can be reassigned?". More College and University decks are listed below.

38 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What keyword declares a variable with block scope that cannot be reassigned?
Show answerconst
What keyword declares a variable with block scope that can be reassigned?
Show answerlet
What keyword declares a variable with function scope (pre-ES6)?
Show answervar
What is the primitive data type for text?
Show answerstring
What is the primitive data type for whole and decimal numbers?
Show answernumber
What is the primitive data type with only two values: true or false?
Show answerboolean
What is the primitive value that represents the absence of any value?
Show answernull
What is the primitive value assigned to variables that have been declared but not initialized?
Show answerundefined
What primitive data type represents a unique identifier that cannot be recreated?
Show answersymbol
What primitive data type represents integers larger than Number.MAX_SAFE_INTEGER?
Show answerbigint
What operator returns a string indicating the type of a value?
Show answertypeof
What data structure is an ordered collection accessed by numeric index?
Show answerarray
What data structure is a collection of key-value pairs?
Show answerobject
What syntax allows embedding expressions inside a string using backticks?
Show answertemplate literals
How do you join two strings together in JavaScript?
Show answerUse the + operator or += assignment operator, or template literals with ${}

23 more cards in the app

Study this set free