-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrimitive-Data.js
47 lines (42 loc) · 1.12 KB
/
Primitive-Data.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
const PrimitiveData = () => {
const define =
"//1// Primitive Data means basic data, you cannot create an application without primitive data.";
return define;
};
console.log(PrimitiveData());
//// Strings
// ''
// or
// ""
// will work for strings. Open up your console and lets display some strings in the browser
// examples {
// "hello",
// 'hello',
// // escaping aka nullifying characters
// // "he said \"hello\" thats it" SHOULD RETURN he said "hello" thats it.
// }
///// Number types or Integers
// ex {
// 100,
// 20,
// }
// Floating Point Numbers aka decimals fractional numbers
// ex {
// 1.1,
// 50.3,
// 110.26
// }
///// Boolean - is either on or off, true or false, negative or positive, one or the other.
// ex {
// true,
// false
// }
/////Null or Undefined - Null means that it is empty, void, means nothing. Same as undefined. Both void of any value
// ex {
// null,
// undefined
// }
/////// NaN - Not A Number : checking to see if you have a number in your application and it returns NaN. That means what you have isn't a number.
// ex {
// Nan
// }