-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut24.htm
More file actions
40 lines (33 loc) · 1.36 KB
/
tut24.htm
File metadata and controls
40 lines (33 loc) · 1.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Javascript | Strings and string methods</title>
</head>
<body>
<div id="content"></div>
<div class="container">
<h1>Lorem, ipsum dolor.
</h1>
<p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Veritatis at unde sunt perspiciatis, soluta mollitia consectetur hic eaque a voluptatibus officiis qui distinctio error pariatur sapiente nostrum quam atque libero est temporibus quod, blanditiis repellat dolores! Quam saepe tempore accusamus itaque, eos sequi odio beatae quibusdam odit numquam fugit est.</p>
</div>
<script>
// We can use single quote also
var string = "This";
var name ="Saksham";
var channel = "Science Hackers"
var message = " Saksham is a good boy";
var temp = `${name} is a nice person and he has a chanel named ${channel}`
// console.log(string + name + message);
// console.log(temp);
// var len = name.length;
// console.log(`Length of the name is ${len}` )
// console.log("Hello\nworld!\nHarry\tand")
var y= new String("This")
console.log(y);
document.getElementById('content').innerHTML= "<h3> This is a h3 heading</h3>"
</script>
</body>
</html>