-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
60 lines (56 loc) · 1.34 KB
/
script.js
File metadata and controls
60 lines (56 loc) · 1.34 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
59
60
////Day number 4 ( variabls)
/*
var x =5
var y =4
var m =x*y
document.write("العدد ٥*٤ <br> يساوي"+ "<br>"+ m);
*/
/////Day number 5 (new line )
/*
document.write("Hello, I will go to next line<br>")
document.write("now I am in the new line<br>")
*/
/////Day number 6 (new function)
/*
function _test(){
document.write("welcom to my first function ")
}
_test()
*/
/////Day number 7 (Words Reserved)
/*
function Words_Reserved(){
document.write("this words not used in Variable Ex void - this - class - for - whille -import ")
}
Words_Reserved()
*/
/////Day number 8 (semicolon)
/*
var a = 2 ; var b =2 ; var c = a+b;
document.write(c)
*/
/////Day number 9 ( Math.max(x,y,z) // وسيط اكبر / من العمليات الرياضية)
/*
var x=10 ;y=20 ;z=30
var a = Math.max(x,y,z)
document.write(a)
*/
/////Day number 10 ( )Dates and Times( والوقت التاريخ)
//document.write("date & time <br>")
//var a= oldDateWithTime = new Date()
//document.write(a)
/////Day number 11+12 ( tset weekend )
/*
console.log(new Date())
*/
/////Day number 13 ( String )
var b="welcome" ,x="hello " ;
document.writeln(b.toUpperCase())
document.write("<br>");
var b="welcome" ,x="hello" ;
document.writeln(b.length);
var s = "hello";
document.write("<br>");
document.write(s.toUpperCase())
document.write("<br>");
document.write(s.replace("h","H"))