yisainan / web-interview

我是齐丶先丶森,收集整理全网面试题及面试技巧,旨在帮助前端工程师们找到一份好工作!更多详见公众号「前端面试秘籍」
MIT License
2.62k stars 505 forks source link

[选择题] 39.(单选题)下面代码的输出是什么 #1017

Open qiilee opened 4 years ago

qiilee commented 4 years ago
console.log("🐭" + "🐍");
A:🐭🐍
B:257548
C:A string containing their code points
D:Error

答案:A

解析:

使用+运算符,您可以连接字符串。上述情况,我们将字符串"🐭" 与 字 符 串 "🐍"连 接 起 来 , 产 生 🐭🐍