I want to generate random number between 0 to 100 and show a div tag if that random isn't less than 10. I have this code but it doesn't work, please can you help me fix the error.
I have already tried on google but I can not find code for php
function showbox(){
document.getElementById("ap1").style.visibility = "visible";
}
function myFunction(name) {
var x = document.getElementById("demo")
x.innerHTML = Math.floor((Math.random() * 100) + 1);
}
if(myFunction(<=10){
setTimeout(showbox, 35000);
}
<div id="ap1" style="visibility: hidden;"></div>
Uncaught SyntaxError: Unexpected token <=