89 Flashcards

(1 cards)

1
Q

Definition of JS

A
  • High Level: NO need to manage resources manually, everything happens automatically
  • Garbage-Collected: “cleans the memory”
  • Interpreted: NO compilation step
  • Multi-paradigm: (1) Procedural programming, (2) OOP, (3) Functional Programming
  • Prototype-based object-oriented: reuse existing objects that serve as prototypes (eg. Array.prototype.push)
  • First-class functions: functions are treated as variables, we cann pass them into other functions and return them from functions
  • Dynamic: the interpreter assigns variables a type at runtime
  • Single-threaded: JS runs in one single thread
  • Non-blocking event loop: takes long running tasks, executes them in the “background”, and puts them back in the main thread once they are finished
How well did you know this?
1
Not at all
2
3
4
5
Perfectly