JSFiddle - React, Tailwind, and code Playground

by irinablue

JavaScript

var string = "The quick brown fox jumps over the lazy dog."
const letters = string.match(/\w+/g).join('');
const sett = new Set(letters.split(''));
console.log(letters.length, sett.size)
//console.log(sett.size === letters.length)