JS Fundamentals Flashcards
(53 cards)
ES5 supports the following data types
number, string, Boolean and undefined
ES5 uses ____ to declare a variable
var
ES5 cannot import ____ into another file
JSX
ES5 uses the _____ module to include a react module or component
RequireJS module
ES5 uses the RequireJS module to include a react module or component
ES5 uses ____ syntax
ES5 uses function(){} syntax
ES5 props are…
ES5 props are implicitly defined and we add this
to functions
ES5 doesn’t require a ____ to render in the web
a transpiler like Babel
ES6 supports the following data types:
number, string, boolean, undefined and Symbol
ES6 uses the following to declare a variable
var, let and const
ES6 can import a ____ file to another file
JSX
ES6 can import a JSX file to another file
ES6 uses the ____ to include a react module or component
import module
ES6 uses the import module to include a react module or component
ES6 uses ____ function syntax
arrow function
ES6 uses arrow function syntax
ES6 props are passed ____ though a ____
We _____ bind ____ to ____ in the ____
ES6 props are passed EXPLICITLY though a CONSTRUCTOR
We EXPLICITLY bind this
to functions in the constructor
ES6 requires a ____ like babel
ES6 requires a transpiler like babel
What are the different primitive data types in JS?
string, number, BigInt, Boolean, undefined, null, Symbol
What are the different non-primitive data types in JS?
stores multiple and complex values
String
Can be represented using a single or double quote
Number
Can be written with or without decimals
BigInt
Stores numbers about the limitation of Number type
boolean
only has two values true or false
undefined
when a variable is declared but not assigned
null
a non-existent or invalid value
Symbol
ES6 data type that stores anonymous and unique property keys
Can create a global Symbol by using the methods Symbol.for() or Symbol.keyFor()
Object
can store data in key/value pairs
can store arrays
can store functions