forked from chinmay021/web-development-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut49.html
More file actions
39 lines (34 loc) · 1.33 KB
/
tut49.html
File metadata and controls
39 lines (34 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JavaScript | Strings and String Methods</title>
</head>
<body>
<div class="container">
<h1>Lorem ipsum dolor sit.</h1>
<div id="content"></div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam nisi, quaerat corrupti quas, illum nobis
tempore sequi cumque laboriosam magni expedita earum? Similique corrupti nam magni reprehenderit quia vero,
reiciendis eius officiis doloremque ipsa?</p>
</div>
<script>
// var string = "this";
var string = 'thi"s';
var name = 'Chinmay';
var channel = 'CodeWithHarry';
var message = 'Chinmay is a good boy';
var temp = `${name} is a 'nice' person "and" he has a channel called ${channel}`;
// console.log(string + name + message);
// console.log(temp);
// var len = name.length;
// console.log(`Length of name is ${len}`)
// console.log("Hello \\nworld\nHarry\tand");
var y = new String("this");
console.log(y);
document.getElementById('content').innerHTML = '<h3>this is an h3 heading</h3>'
</script>
</body>
</html>