Intro Flashcards

1
Q

What does ECMA mean?

A

European Computer Manufacturer’s Association

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

What is an expression?

A

A phrase of JS that can be evaluate to produce a value.
Näiteks operators

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

Why is JS the most deployed programming language?

A

The majority of websites use Js and all modern web browsers include JS interpreters.

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

Why is JS the most used programming language?

A

Because of Node - it enables to use JS outside the web browser

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

Explain why JavaScript is a high-level, dynamic, interpreted programming language that is well-suited to object-oriented and functional programming styles.

A

High level - human readable and easy to understand.

Dynamic - it allows for changes and adjustments to happen when the program is running.

Interpreted - the code is interpreted line by line, rather than being compiled into machine code before execution.

Object-Oriented Programming (OOP): JavaScript supports OOP principles such as encapsulation, inheritance, and polymorphism.

Functional Programming (FP): JavaScript also supports functional programming concepts such as higher-order functions, first-class functions, and closures.

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

Who created JS?

A

Brendan Eich in 1995

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

Why was JS created?

A

To add interactivity and dynamic behaviour to Netscape Navigator.

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

ES6 was released in 2015 and added major new features — including class and module syntax. What did this do to the JS language?

A

It turned it into a serious, general propose language suitable for large scaling software engineering.

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

How can you automatically create strict mode in ES6?

A

Using the keyword class or creating a module. All the code within the class or module is automatically strict.

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

What access gives node to JS

A

To the entire operating system.
Allowing js programs to read and write files
Send and receive data over network
Make and serve HTTP requests

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