Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random letter from a name js

let myName = 'yourname';
let randomChar = Math.trunc(Math.random() * myName.length);
console.log(myName.charAt(randomChar));
Source by www.coderrocketfuel.com #
 
PREVIOUS NEXT
Tagged: #random #letter #js
ADD COMMENT
Topic
Name
4+1 =