-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprimitives.js
60 lines (54 loc) · 1.18 KB
/
primitives.js
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
57
58
59
60
//@ts-check
// These are some primitive values returned by the functions. There are even more primitives https://developer.mozilla.org/en-US/docs/Glossary/Primitive
// Actually there is no difference between an int and a float, but just for the fun of it we act like ther is one.
// Make the function return the right thing
/**
* This function returns a boolean value.
* @returns {boolean}
*/
function booleans() {
return undefined;
}
/**
* This function returns a integer value.
* @returns {number}
*/
function ints() {
return undefined;
}
/**
* This function returns a floating point value.
* @returns {number}
*/
function floats() {
return undefined;
}
/**
* This function returns a number value.
* @returns {number}
*/
function numbers() {
return undefined;
}
/**
* This function returns an undefined value.
* @returns {undefined}
*/
function undefineds() {
return true;
}
/**
* This function returns a null value.
* @returns {null}
*/
function nulls() {
return undefined;
}
/**
* This function returns a string value.
* @returns {string}
*/
function strings() {
return undefined;
}
module.exports = { booleans, ints, numbers, floats, undefineds, nulls, strings };