Javascript Flashcards

1
Q

callback function

A

A function that pass in another function as argument.
A callback function is created in order to be executed at a later point in time.
(often in event)

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

function

A

a block of code designed to perform a particular task

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

how many way to define function ?

A
6: function decoration function name()
function expression const name = function () {}
shorthand const name = {} => defined using object
arrow function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

return vs console.log

A

return is to return a actual value

console.log: to print some information to the console

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

scope

A

defines visibility and accessibility of our variables

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

way to access object value

A

bracket notation

dot notation

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

object

A

Objects are incredibly useful for storing paired and grouped data in JavaScript

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

array

A

you wanted to make a list of values where the order mattered

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

API

A

Application programming interface,
refer to a set of instructions and protocols of communication that facilitate communication between a client and a server

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

REST API

A

api organization principles used by many developer (representational state transfer)

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

Communicate with API

A

HTTP: hypertext transfer protocol, tell api what we want to do, get, post, put, delete

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

AJAX

A

AJAX (Asynchronous JavaScript and XML) because it allows us to send and receive data asynchronously

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

fetch

A

requesting data from as a single argument to the fetch() method

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