-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
58 lines (45 loc) · 1.76 KB
/
Copy pathindex.js
File metadata and controls
58 lines (45 loc) · 1.76 KB
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
// 01.Write a single line comment which says, comments can make code readable
// comments can make code readable
// 02.Write another single comment which says, Welcome to 30DaysOfJavaScript
// Welcome to 30DaysOfJavaScript
// 03.Write a multiline comment which says, comments can make code readable, easy to reuse and informative
/*
comments can make code readable,
easy to reuse and informative
*/
// 04.Create a variable.js file and declare variables and assign string, boolean, undefined and null data types
// let firstName = "erman"
// true
// undefined
// null
// 05.Create datatypes.js file and use the JavaScript typeof operator to check different data types. Check the data type of each variable
// let firstName = "erman"
// true
// undefined
// null
// console.log(typeof firstName)
// console.log(typeof true)
// console.log(typeof undefined)
// console.log(typeof null)
// 06.Declare four variables without assigning values
// let firstName
// let lastName
// let age
// let location
// 07.Declare four variables with assigned values
// let firstName = "erman"
// let lastName = "Junaidi"
// let age = 40
// let location = "Semarang"
// 08.Declare variables to store your first name, last name, marital status, country and age in multiple lines
// let firstName = "erman"
// let lastName = "Junaidi"
// let maritalStatus = "married"
// let age = 40
// 09.Declare variables to store your first name, last name, marital status, country and age in a single line
// let firstName = "erman", lastName = "junaidi", maritalStatus = "married", age = 40
// console.log(firstName, lastName, maritalStatus, age)
// 10.Declare two variables myAge and yourAge and assign them initial values and log to the browser console.
// let myAge = 40
// let yourAge = 30
// console.log(myAge, yourAge)