JSFiddle - React, Tailwind, and code Playground
JavaScript
count = 0
for(i=1; i<= 10; i++){
if(Math.random()*100 <= 60)
count++;
}
no_w_c = 10 - count;
alert("White christmas is "+count + " No white christmas "+no_w_c);
count = 0
for(i=1; i<= 10; i++){
if(Math.random()*100 <= 60)
count++;
}
no_w_c = 10 - count;
alert("White christmas is "+count + " No white christmas "+no_w_c);