JS Flashcards
To improve retention of core JavaScript concepts
What is the command line?
Program in the computer that allows you to issue direct commands to the computer
What is scope?
How accessible a variable is within your script
What is a code block?
Anything within { }, except an object
Local scope versus Global scope
In local scope, can access variables declared locally and globally. In global scope, can only access global variables
What is data?
Data is a sequence of characters or symbols on which operations are performed by a computer
What’s a data type?
Extra info about data that tells the computer how to deal with it and how to store it.
What’s a program?
A series of instructions that perform a task, executed by a computer
What are the data types of JavaScript?
1) string 2) number 3) boolean 4) null 5) undefined
6) object (a complex data type)
Which value in JS is not strictly equal to itself and why?
NaN. Because NaN is like an undefinable number. NaN is unordered. It is not equal to, greater than or less than anything, including itself
Loosely typed language means what?
JS is loosely typed in that it guesses what each data type is. JS does not require type declaration
What is an API?
Application Programming Interface. It facilitates communication between a client and a server
What is a server?
A computer program or device that accepts and responds to requests made by another program, often a client. A server manages network resources
What is a client?
The opposite of a server. The thing that sends a request to a server
What is a REST API?
REST is Representational State Transfer. A REST API follows a specific architectural style in how the data stored is arranged and how the API communicates with clients
JSON and how it differs from JS.
JavaScript Object Notation. It has all the JavaScript data types except functions.