How to count EMOJI in a string or text line and display the output, how many emoji are in the text line or string?
For example:
One option would be to compare the length of the input string against the length of the same string with all Emoji characters removed:
function fancyCount(str){ return Array.from(str.split(/[\ufe00-\ufe0f]/).join("")).length; } var input = "Hello