Basics Flashcards

Get a fucking job

1
Q

What are static methods?

A

Methods that belong to a class instead of an instance. They’re called on the class itself. They don’t have access to the this object, which is the instance-specific data. They’re defined with the “static” keyword.

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

What are instance methods?

A

Methods that belong to a class instance. They have access to the this object. They don’t need any keyword to be defined.

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

What is IIFE?

A

Immediately Invoked Function Expression.

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

What is a callback?

A

A function that is passed into another function as an argument, which is then invoked inside the outer function to complete a task or routine.

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

What is === and == ?

A

Strict equality and loose equality. Double equals perform type conversion before comparing, triple equals doesn’t.

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

What are primitives?

A

A primitive is a data type that is not an object and does not contain methods or properties.

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

What are the 7 primitives of JavaScript?

A
  1. null
  2. undefined
  3. number
  4. bigint
  5. string
  6. boolean
  7. symbol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s the difference between Primitive types and Reference types?

A

Primitive type values get stored directly in the stack (when declared at the top level) and Reference type values are stored in the heap with a reference in the stack.

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

What is a data type?

A

It’s a blueprint of how data is represented in the computer’s memory.

Programming languages manipulate values, those values belong to a type. Variables can hold values, a data type defines the kind of value the variable can hold.

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