-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay1.html
25 lines (22 loc) · 984 Bytes
/
Day1.html
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
<html>
<head>
<body>
<script>
// Unlike other language we dont want to use
// datatypes like string,int ,javascript will
// implicitly manage the datatypes according to the values
//old javascript "var" will be used instead of let
let day1="Welcome day1";
day1="Hey have nice day" //this will be override the previous value
console.log(`${day1} ponmani`)//[output] Hey have nice day ponmani
alert(day1);
alert(typeof(day1)); //output will be "String"
let hey=7;
alert(typeof(hey));//output will be "number"
const dayy1="Welcome day1";
dayy1="Hey its const";
alert(dayy1);//this will give "Uncaught type error we cant override it"
</script>
</body>
</head>
</html>