JSFiddle - React, Tailwind, and code Playground
by Diana Lemen
JavaScript
let num=Math.floor(Math.random() * 10) + 1;
function rand(){
if (num % 2 == 0){
alert(true)
}else{
alert(false)
}
}
rand();
by Diana Lemen
let num=Math.floor(Math.random() * 10) + 1;
function rand(){
if (num % 2 == 0){
alert(true)
}else{
alert(false)
}
}
rand();