-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.html
More file actions
executable file
·77 lines (70 loc) · 1.48 KB
/
Copy pathtest1.html
File metadata and controls
executable file
·77 lines (70 loc) · 1.48 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
<head>
</head>
<body>
<script type ="text/javascript">
document.write("salut first test javascript");
document.write(" second test javascript");
var x=12.00002 ;
var a=14.004;
var z=x+a;
var y="text in here ";
document.write(" "+z+" "+y);
function elwan(){
alert("yes elwan great!!!");
}
function elou(x){
alert("i love "+x);
}
//elou("javascript");
//elou(7);
//elou("python and javascript");
//function with a many parametres
function select(x,y){
document.write(x +" is better than "+y +"<br />");
}
select("linux","windows");
select("Hp","Acer");
//functioryn with a many parametres
function add(x,y){
return x+y ;
}
document.write(add("elwan","ndiaye"));
//function with a many parametres
function sous(x,y){
return x-y;
}
//function call many function
function operation(){
document.write(add(3,4));
document.write(sous(4,3));
}
operation();
var test="elwan";
document.write(test);
function controle(){
alert("Entrer votre nom "+"<br />");
}
if(test){
document.write(" i love js"+"<br />");
}
else{
document.write(" i love python");
}
var prgrm="c";
switch(prgrm){
case "python":
document.write("python is a best"+"<br />");
break;
case "js":
document.write("js is simple"+"<br />");
break;
default:
document.write("choisissez un programme"+"<br />");
}
</script>
<form>
<input type="button" value="elwan" onclick="elwan()" >
</form>
</body>
</html>