-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathendsem.html
More file actions
38 lines (33 loc) · 1.21 KB
/
endsem.html
File metadata and controls
38 lines (33 loc) · 1.21 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
<head>
<html>
</head>
<body>
<h1>JavaScript Tutorial</h1>
<p id="js"></p>
<!-- <button type="button" onclick="myFunction()">Click me to get time</button> -->
<script>
// ques1
// str="National Institute of Information Technology Patna";
// document.getElementById("js").innerHTML=str.length;
// ques2
// const cities = ["Lucknow", "Patna", "Allahabad", "Jaipur", "Bengaluru"];
// cities.sort();//sort() arrange a string in alphabatically order
// document.getElementById("js").innerHTML=cities;
// ques3
// const cities = ["Lucknow", "Patna", "Allahabad", "Jaipur", "Bengaluru"];
// cities.shift();// shift() remove the first string of Arrayfrom starting
// document.getElementById("js").innerHTML=cities;
// ques5
// let str1= 50;
// let str2= 1;
// let str3= "A";
// let str4= str1+str2+str3;
// str4.eval();
// document.getElementById("js").innerHTML=str4
// function myFunction()
// {
// document.getElementById("js").innerHTML = Date();
// }
</script>
</body>
</html>