A random Array November 1, 2023November 1, 2023| XarlosXarlos| 0 Comment | 3:48 pm Categories: Uncategorized let arr = [1,2,3,4] let rmd = arr[Math.floor(Math.random() * arr.length)] console.log(rmd) https://jsfiddle.net/xewcsop8/ Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Post navigation PREVIOUS Previous post: Hello world!NEXT Next post: How to get Input and Output- the sample way Related Post How to get Input and Output- the sample wayHow to get Input and Output- the sample way How to convert input strings into numbers only. If the user enters a non number, then will be using the !num and return statement to return invalid. Note: Nothing happens Read MoreRead More Read MoreRead More How to return the day of the week in JavascriptHow to return the day of the week in Javascript How to get today’s Date in Javascript Function Ex 11/2/2023 Read MoreRead More
How to get Input and Output- the sample wayHow to get Input and Output- the sample way How to convert input strings into numbers only. If the user enters a non number, then will be using the !num and return statement to return invalid. Note: Nothing happens Read MoreRead More
How to return the day of the week in JavascriptHow to return the day of the week in Javascript How to get today’s Date in Javascript Function Ex 11/2/2023 Read MoreRead More