Two way
let hex = "😀".codePointAt(0).toString(16)
let emo = String.fromCodePoint("0x"+hex);
console.log(hex, emo);
More Related Contents:
- How to prevent Unicode characters from rendering as emoji in HTML from JavaScript?
- How to detect emoji using javascript
- How to remove emoji code using javascript?
- How can I split a string containing emoji into an array?
- Printing emojis with JavaScript and HTML
- How to count the correct length of a string with emojis in javascript?
- Why is “👍”.length === 2?
- Regex matching emoticons
- Come up on hover [closed]
- Trying to use fetch and pass in mode: no-cors
- How to convert file to base64 in JavaScript?
- Chrome Extension – How to get HTTP Response Body?
- How do you put an image file in a json object?
- How to create an auto-complete combobox?
- Adding code to a javascript function programmatically
- Bootstrap 4 navbar not collapsing on large screen
- Javascript: filter array of objects by array of strings
- Mercator longitude and latitude calculations to x and y on a cropped map (of the UK)
- Is there a better way of writing v = (v == 0 ? 1 : 0); [closed]
- this.href vs $(this).attr(‘href’)
- What are “class fields” in JavaScript?
- How do I measure the execution time of JavaScript code with callbacks?
- Is there a way to use variable keys in a JavaScript object literal?
- How to allow access for importrange function via apps script?
- Is it better to return `undefined` or `null` from a javascript function? [closed]
- Difference between \r and \n
- how to auto select an input field and the text in it on page load
- Generating sound on the fly with javascript/html5
- Can I do SendKeys in Javascript?
- Javascript float subtract