JSFiddle - React, Tailwind, and code Playground
by Gwyn Milcote
JavaScript
var word = "happy my bolognahasafirstif youve been following the Scratch tutorials this one Excellent questionWhenyou upload a JPEG file the image is analyzed Textures patterns andcolours are automatically identified The encoder creates anoptimallycompressed JPEG file based on that informationThe finalresult is compared with the orginal and fine-tunedDistracting JPEG artifactsareminimized without big sacrifices in file sizeUnnecessarymetadata is stripped as well You will get an optimal image every timewillbe abit ofa change ItsJavaScript time name its O S C A R";
var wordLength = word.length;
var scrambled = "";
for (var i = 0; i < wordLength; i++) {
var charIndex = Math.floor(Math.random() * word.length);
scrambled += word.charAt(charIndex);
word = word.substr(0, charIndex) + word.substr(charIndex + 1);
}
alert(scrambled);