<!DOCTYPE html>
<html>
<body>
<h2>JavaScript 型変換</h2>
<p>数値文字列を他の型に変換する:</p>
<p id="demo" style="font-family:courier"></p>
<script>
let x = "20";
document.getElementById("demo").innerHTML =
"Number : " + Number(x) + "<br>" +
"String : " + String(x) + "<br>" +
"Boolean: " + Boolean(x);
</script>
</body>
</html>