<html>
<body>
<h1>JavaScript 字符串</h1>
<h2>concat() 方法</h2>
<p>concat() 方法连接两个或多个字符串。</p>
<p>连接 "Hello" 和 "Kitty",中间有空格:</p>
<p id="demo"></p>
<script>
let text1 = "Hello";
let text2 = "world!";
let result = text1.concat(" ", text2);
document.getElementById("demo").innerHTML = result;
</script>
</body>
</html>