Javascript Cht 3 Primitive Data types and Objects
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
var a = null;
var b = 345;
var c = false;
var d = BigInt("420");
var e = "I am string data type";
var f = Symbol("I'm symbol data type");
var g = undefined;
console.log(a);
console.log(b);
console.log(c);
console.log(d);
console.log(e);
console.log(f);
console.log(g);
console.log("That's how you can see the type of the data type",typeof c);
</script>
</body>
</html>
Comments
Post a Comment