Javascript Flashcards
What is JavaScript?
JavaScript allows us to create incredibly diverse applications that run in the browser, on the back-end as NodeJS, on the desktop, and on mobile devices. It’s a flexible language, allowing us to program in many different styles — functional and object-oriented, in particular — mixing and matching concepts to adapt to our needs. It’s powerful, scalable, and has a robust community of developers churning out new code and advancing the language. And, finally, it’s a great first or second language to learn.
What are variables?
- Hold primitive or compound data
- Types: Let & Const
What is Let?
- Declares variable that can be changed later
What is Const?
- Variable that cannot be changed
What are the 2 types of data? (2)
- Primitive
- Compound
What are the 2 types of data? (2)
- Primitive
- Compound
What is Compound data?
- array
- object
Define DOM
- Document Object Model
What is the DOM?
__
How to write an IF statement in JS
__
How to insert JS?
- Insert tag just before </body> of HTML doc containing link to .js file.
- real-life apps bundle many .js files into one
What is asynchronous JS?
- The process of making requests for additional data from a loaded page
Define AJAX
- Asynchronous JavaScript and XML
How to write an IF statement in JS
if (condition) { // Block of code }
What is ECMAScript?
- JavaScript specification revised every yr since ES2015-ES2020