What is JavaScript Flashcards

Basics, how it works, DOM, etc.

1
Q

What is JavaScript?

A

A programming language that powers the dynamic behavior on most websites.

Alongside HTML and CSS, it is a core technology that makes the web run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When is JavaScript executed?

A

Once the HTML and CSS in the source code have been parsed and constructed, the DOM is updated, and JavaScript will be rendered in the browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the DOM?

A

Document Object Model
- created when a page is loaded
- consists of nodes and objects that map out all of the elements and attributes on a page
- Programs can modify and manipulate the page structure, content, and styling with JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is ECMAScript (ES)?

A

A scripting language that was created to standardize the use of JavaScript code. New editions are released when the language is updated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is transpiling?

A

A transpiler transforms source code into a different programming language.

For example, transforming ES5 into ES6 or vice versa.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Single Page Application (SPA)?

A

A website or web app that dynamically re-writes and re-renders a page as a user interacts with it, rather than making separate requests to the server for new HTML content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are JavaScript frameworks (like React.js)?

A

a collection of JavaScript code libraries that provide pre-written code templates for routine programming tasks

allows you to build upon an existing feature set instead of building an application completely from scratch

faster and more efficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a JavaScript library?

A

A collection of pre-written code snippets that provide a use-as-needed library of features, and are less about shaping an entire application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Model View Controller (MVC)?

A

Used by modern JS frameworks to develop user interfaces that divide programming logic into 3 interconnected elements

Model - central web component; manages the data

View - all the code that represents the data; the code for the UI

Controller - interpreter; accepts inputs and converts them into commands for the model or view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is rendering?

A

Rendering takes the scripts and instructions it contains, processes them, and then runs them so that the required output is shown in the browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is pre-rendering?

A

Rendering the content on a page before it is requested by the user or search engine.

Static, pre-rendered pages are less engaging for users as they lack dynamic content or interactivity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is server-side rendering?

A

The server renders the page so that the JS has already been processed and the content is ready to be handed over to the user’s browser or search engine when it is requested

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is client-side rendering?

A

JS is processed by the user’s browser or search engine that’s requesting a page.

The server handles the initial request, but the user’s device or search engine handles the rest.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is dynamic rendering?

A

Using different rendering methods depending on whether a user’s browser or search engine bot is requesting a page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is hybrid rendering?

A

A combination of server-side rendering and client-side rendering.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly