JSFiddle - React, Tailwind, and code Playground
by irinablue
JavaScript
const sentence = 'This is an example';
const longWord = sentence.match(/\w+/g).join('');
const sett = new Set(longWord.split(''));
console.log(sett.size)
by irinablue
const sentence = 'This is an example';
const longWord = sentence.match(/\w+/g).join('');
const sett = new Set(longWord.split(''));
console.log(sett.size)