Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get random letter js

const alphabet = "abcdefghijklmnopqrstuvwxyz"

const randomCharacter = alphabet[Math.floor(Math.random() * alphabet.length)]
Comment

random letter from a name js

let myName = 'yourname';
let randomChar = Math.trunc(Math.random() * myName.length);
console.log(myName.charAt(randomChar));
Comment

PREVIOUS NEXT
Code Example
Javascript :: what is jsx in react 
Javascript :: how to save and use item from local storage javascript 
Javascript :: for loop set timeout 
Javascript :: javascript convert image to base64 
Javascript :: how to get the computer date and time jquery 
Javascript :: how to convert integer to double in javascript 
Javascript :: javascript object array contains 
Javascript :: joi unique validation 
Javascript :: image preview 
Javascript :: get date one week from now javascript 
Javascript :: How to get current time zone in javascript 
Javascript :: node app 
Javascript :: how to get value of html element in javascript 
Javascript :: how to use trim in node js 
Javascript :: Uncaught (in promise) SyntaxError: Unexpected token O in JSON at position 0 
Javascript :: loading 
Javascript :: javascript creeate utc date 
Javascript :: array contains method 
Javascript :: run function then empty it js 
Javascript :: javascript queryselector 
Javascript :: replace object in array with another array with same id javascript 
Javascript :: nodejs routes 
Javascript :: header disallowed by preflight response in express 
Javascript :: shorthand if statment in js 
Javascript :: js get day name from date 
Javascript :: how to use console.log in vuejs 
Javascript :: npm i postman 
Javascript :: jquery display text in div 
Javascript :: remove selected js 
Javascript :: json stringify double quotes 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =