-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
85 lines (61 loc) · 1.94 KB
/
main.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
document.querySelector("h1").style.color = "red";
console.log("hosam");
console.log(typeof[14,15,17])
console.log(typeof true)
console.log
document.write("<h1>hallo world</h1>");
document.querySelector("h1").style.color = "red";
console.error('erroe');
//window.print()
console.log(typeof"hosam");
console.log(typeof"hosam", "osman");
console.log(typeof[12,23,45]);
console.log(typeof true)
var user
user = "hosam";
user=10;
console.log(user);
let z = 10;
z = 50,
console.log(z);
const v = 15;
console.log(v); // bei const man kann die Variable nicht wieder ändern;
document.write("<h2>hosam osman awas</h2>");
document.querySelector("h2").style.fontSize = "70px"
// concetnation: /////
let name = "hosam";
let age = 30;
document.write(`mein name ist ${name}`);
//console.log(name + age); // erste Option
/*
man kann auch space als Variable machen.
let name = "hosam";
let age = 30;
let x = " ";
console.log(name + x + age); // zweite Option
*/
//console.log(`meine Name ist ${name} and i am ${age} `) // beste option
console.log(`Mein Name ist ${name} und mein Alter ist ${age}`);
console.log(5+4);
//comsole.log('mein name ist Hosaqm ${nmm,e ofremv ok idenv jonv iojernvüö,xm vcioubn edoöö dcijn idkcn ikn c }')
document.querySelector("h1").style.color = 'blue';
name= "Abo"
age= 38
console.log(`mein Name ist ${name} und ich bin ${age}`)
document.write(`mein name ist ${name}`);
console.log(typeof true);
console.log(typeof"hosam", "osman");
console.log(typeof[12,15,20]);
console.log(typeof false);
//window.alert("hallo hosam");
console.table({firstname:"John", lastname:"Doe"});
// das ist nur test
//let zakah=window.prompt("Zakah")
//console.log( 0.025 * zakah + (" sd") )
//console.table( {firstname: " Husman,", lastname: " Osman"})
console.log(Number.MAX_SAFE_INTEGER);
let x = 5
console.log(typeof x. toString())
console.log(typeof (200). toString())
let objects= [1, 2, 3, [4, 5, 6, [7, 8 , 9]]];
console.log ( objects[3] [3] [2]);