How to add emojis in js as string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How to add emojis in js as string?

I want to add emojis but there is no option for emojis😥

8th Jun 2019, 6:33 AM
Jelena🇷🇺
Jelena🇷🇺 - avatar
7 Answers
+ 6
I am trying to add emojis in string For example; alert("I am happy☺")
8th Jun 2019, 6:47 AM
Jelena🇷🇺
Jelena🇷🇺 - avatar
+ 3
$h!† c0der can you paste some unicodes here?
8th Jun 2019, 9:09 AM
Jelena🇷🇺
Jelena🇷🇺 - avatar
+ 3
8th Jun 2019, 9:15 AM
Jelena🇷🇺
Jelena🇷🇺 - avatar
+ 2
Could you show us the code you are working on, elaborating on what you mean? You can add emojis in text on a mobile, so I'm curious what you mean.
8th Jun 2019, 6:44 AM
River
River - avatar
+ 2
I have just tried that, onlyalearner and it worked for me. Is that all you are trying? It works for me. Trying to figure iut why you can't do it. 🤔
8th Jun 2019, 6:50 AM
River
River - avatar
+ 2
IMPORTANT INFORMATION : Those are Unicode
8th Jun 2019, 6:53 AM
‎وائل عبد الحق‎
‎وائل عبد الحق‎ - avatar
0
سلام
8th Jun 2019, 10:59 AM
‎👑Ershad👑
‎👑Ershad👑 - avatar