1function myFunction() {
2 var x1 = Boolean(0);
3 var x2 = Boolean(1);
4 var x3 = new Date();
5 var x4 = "12345";
6 var x5 = 12345;
7
8
9 console.log(String(x1))
10 console.log(String(x2))
11 console.log(String(x3))
12 console.log(String(x4))
13 console.log(String(x5))
14
15}
16
17//outputs the following:
18
19false
20true
21Wed Dec 30 2020 20:35:17 GMT-0500 (Eastern Standard Time)
2212345
2312345
24
1<script type="text/javascript">
2 var num=213;
3 document.write("Output : " + num.toString(2));
4</script>
5