JavaScript Flashcards
What is a program?
a program is a set of instructions that you write to tell a computer what to do
what is a programming?
Programming is the task of writing those instructions in a language that the computer can understand.
JS Syntax
Semicolon, brackets, parentheses, quotation Marks, and other Unique characters
what is a variable?
Data buckets to store stuff and take stuff out;
data can hold data in; tells our program to remember values for us to use later on; the entry we use to store the value is called variable
Variables have
declaration: let age
Assignment: age=25
Both at the same time: let ag=25
Javascript is single-threaded
Synchronous aka processes one operation at a time.
True or False
True
If synchronous, how do we do stuff like make an api request and keep scrolling or clicking?
Thing should block, the environment
What is an API
A simple interface to make something simple.
DOM
Document Object Model