JS - Chapitre 03 - Fonction Flashcards

1
Q

function expression

A

C’est quand function n’apparait pas en premier

const sum = function (x,y) { return x + y;}

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

Arrow function

A

const sum = (x,y) => x+y;

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

Arrow function multiple statement

A

const sum = (x,y) => { return x+y; }

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

unary function

A

un paramètre

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

binary function

A

2 paramètres

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

n-ary

A

n paramètre

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

nullary

A

pas de paramètres

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

Valeur par défaut function

A

function (x, y = 1)

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

pure function

A

calcul d’une valeur en fonction des paramètres en entrée et déterministe

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

function en func prog

A

ne doit pas changer l’environnement

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