JavaScript



const d = new Date(); d.setHours(22); document.getElementById("demo").innerHTML = d.getDate(); console.log(const d);
document.getElementById("demo").innerHTML = Math.PI;
const r= new Date(); document.getElementById("demo").innerHTML = r.getHours();

var a=2; var pi=document.getElementById("demo").innerHTML = Math.PI; var r=document.getElementById("demo").innerHTML = r.getHours(); var c=a*pi*r; var num=var c; num = num.toFixed(3); // var c document.getElementById("demo").innerHTML = c; console.log(var c);