-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJS004.html
More file actions
53 lines (50 loc) · 1.71 KB
/
JS004.html
File metadata and controls
53 lines (50 loc) · 1.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Functions</title>
</head>
<body>
<h5>This is the Functions Section</h5>
<script>
function convert(){
mytext="I really LikE Mind Games like Chess and Sudoku";
var s=mytext.toUpperCase();
console.log(mytext);
console.log(s);
}
convert();
function Check(){
var number=prompt("Enter the Whole Number");
if(number<10){
console.log("Your Number is Less than 10");
}else if(number>9){
console.log("Your Number is really greater than 9");
}else{
console.log("ERROR: You did not honestly Enter any Number SOB");
}
}
Check();
function Momo(){
console.log("1.Send Money\n2.Withdray Money");
var choice=parseInt(prompt("Enter your choice"));
if(choice===1){
console.log("Money Sent");
}else{
console.log("Money Withdrawn");
}
}
function up(message){
var x=message.toUpperCase();
console.log(x);
}
up("Please");
function sumValues(n1,n2){
var x= n1+n1;
console.log(x);
}
sumValues(10,20);
</script>
</body>
</html>