-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
39 lines (36 loc) · 989 Bytes
/
test.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
/*function sum(x,y) {
return x + y;
}*/
/*let text = "Hello World";
text.length;
console.log("Blue".toLowerCase());
console.log("red".toUpperCase());*/
/*let language = "JavaScript";
console.log(language[2]);
console.log(language[7]);
console.log(language[language.length - 2]);
console.log(language.substring(1,4));
console.log(language.substring(4));*/
/*let firstname = "Fuh";
let lastname = "Suh";
let string = firstname + " " + lastname
let string = firstname += " Suh";
console.log(string);*/
/* let text = `This is an
example of multi-line string
and it will work in multiple lines`;
console.log(text);
let lowlanguage = "JavaScript";
console.log(`I am learning now $(lowlanguage)`);
let number = 45
console.log(number);
console.log(number.toString()); */
/* let str = "43";
console.log(Number.parseInt("43", 10));
let a = 10;
let b = "20";
console.log(a + b);
console.log(a + Number.parseInt(b, 10)); */
let language = "C++";
language = "JavaScript";
console.log(language)