JSFiddle - React, Tailwind, and code Playground
HTML
<h1>
<p id="demo"> paragraph </p>
</h1>
JavaScript
var result = "結果",
str = new String("總裁 海綿寶寶"),
str1 = "總裁 海綿寶寶 鐵大";
num = new Number(12345.12345),
num1 = 12345.12345,
b = new Boolean(false),
bb = true,
a = new Array("外獅佬","超人","大神");
aa = ["外獅佬","超人","大神", "J大"],
obj = {name: "海綿寶寶", address: "比奇堡"},
s = JSON.stringify(obj),
o = JSON.parse(s),
r = new RegExp("[a-z]", "gim"),
rr = /[a-z]/gim;
result = str1.length;
result = num1.toPrecision(12);
result = bb.toString();
result = aa.length;
result = obj.name;
result = s;
result = o.address;
result = "This is a book.".replace(rr, "Z");
document.getElementById("demo").innerHTML = result;