-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFonctionTest.js
More file actions
56 lines (45 loc) · 796 Bytes
/
FonctionTest.js
File metadata and controls
56 lines (45 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
function nombre() {
return 2
}
function string() {
return "hello"
}
function PlainObject() {
return Object.create(null)
}
function Promis() {
return new Promise(function (res, rej) {
res("hello")
})
}
function array() {
return []
}
function classes() {
return class Rectangle {
constructor(hauteur, largeur) {
this.hauteur = hauteur;
this.largeur = largeur;
}
};
}
function object() {
return {}
}
function isSet() {
return new Set()
}
function isMap() {
return new Map()
}
function isWeakMap() {
return new WeakMap()
}
function isBingint() {
return 957n
}
module.exports = {
nombre, string, PlainObject,
Promis, array, classes, object, isSet,
isMap, isWeakMap, isBingint
}