Skip to content

输出什么?

javascript
console.log("🥑" + "💻");

A. "🥑💻" B. 257548 C. A string containing their code points D. Error

答案: A

解析:

使用+运算符,您可以连接字符串。 上述情况,我们将字符串“🥑”与字符串”💻“连接起来,产生”🥑💻“