Комментарии:
let a = ["red","blue","Green","indigo","violet","pink","purple"]
let sum=()=>{
let r =Math.floor(Math.random()*(a.length))
document.body.style.background=a[r]
}
setInterval(sum,1000)
best explanation video
Ответитьwhy prompt is executed before set timeout function?
let a = setTimeout(function() {
alert("I am in side set time out")
}, 3000)
let b = prompt("Do you want to run settimeout?")
if ("n" == b) {
clearTimeout(a)
}
console.log(a)
let k = setInterval(function(){
alert("I am inside of setinterval")
}, 5000)
let d = prompt("Do you want to run interval?")
if("n" == d){
clearInterval(k)
}
console.log(k)
Useffect ke sath set time out vala video banaona
ОтветитьHarry bhai to be honest boht kam explain kar rahe ho javascript me C language ke mukable
Ответитьgithub CoPilot le rakha hai.....ameer log
Ответитьlet x = 3;
let y = 7;
setInterval(function(a, b){
alert(x + y)
}, 5000)
solution = function greet(name) {
console.log("hello, " + name + "!")
}
const name1 = "sahil"
const name2 = "Abbas"
setInterval(function(){
greet(name1)
}, 2000)
setInterval(function(){
greet(name2)
}, 3000)
const sum = (a, b, c) => { console.log("Yes I am running" (a+b+c));
a+b+c
} setInterval(sum, 2000, 1, 2,7)
poori Jindagi setTimeout hui padi hai
Ответитьconst product = (a,b,c) =>{
alert("welcome to the new world!" , (a*b*c))
}
let x = setInterval(product, 2000, 1,3,6)
console.log(x)
setInterval(()=>{
const num1=15;
const num2=6;
alert("My age is "+(num1+num2));
},1000);
Introduction sound was reduced. It is pleasant to listen now. Good
ОтветитьLoads of channel will collapse, when harry will make dsa series.
Ответитьyour my fevorite coder
Ответитьbhai ap thoda jhos me bola karo apki aavaj me nind dikh rahi he or bad me hamko bhi nind da jahi hey
Ответитьarre yrr harr jagah prr function ka code kuch alag se hi likh rhe ho dimag ka bs*d ho raha hai..... harry bhai ye syntax bhi toh sikhao.....
ОтветитьAny freelancer here ?
ОтветитьThik hai🎉😂
Ответитьconst Sum = (a,b,c) => {
console.log("i will keep running", (a+b+c)
a+b+c
}
setInterval(sum,4000,1,4,5)
harry bhai ki shakal thoid bohot yuvraj singh se milti hai
Ответитьthankyou!
Ответитьfunc_add=()=>{
let num1=Math.floor(Math.random()*(50-1)+1);
let num2=Math.floor(Math.random()*(50-1)+1);
let a= num1+num2
console.log((num1)+"+"+(num2)+" = "+a)
}
setInterval(func_add,5000)
// setInterval(function(a , b){
// a = 1
// b = 2
// alert("hwy whats up")
// console.log("hey im running " + (a + b))
// } , 10000)
let sub = () = > {
alert("Like our services? follow us now!!"
}
setInterval (sub, 1000);
Thank you harry bhai for this playlist
Ответитьapp log bass criminology samajh lijiye 😂
ОтветитьAlert, prompt ,confirm yeh phone main execute nahi ho raha hai
Why??
I use replit.application in my phone cuz I don't have pc or laptop plzz somebody tell me
Ruined my js
ОтветитьHello harry,
SetInterval is not working properly with inactive tab. How to fix that.?
sir your voice very attractive so your debut in the bollywood you create a commotion so please try boliwood,sorry and thank you
ОтветитьThik Hai!
Ответитьconst mul = (x, y) => document.write(`\n The multiplication of ${x} and ${y} is: `,x * y);
setInterval(mul, 5000, 5, 2);
let a= setInterval(function(){
document.write("i love u mom, <br>")
},3000)
setTimeout(function(){
clearInterval(a)
},150000)
CLock Using SetInterval
// ---------In Html Tag
<p id="clock"></p>
// -----------In Script Tag
let clock = document.getElementById("clock");
setInterval(function(){
let date = new Date();
clock.innerHTML = date
},1000)
Sir aap osford meh try kro
Ответитьlet nameArray = ["x", "y","z"]
const randomName= (array)=>{
document.getElementsByTagName('div')[0].innerHTML = array[Math.floor(Math.random()* array.length)]
}
setInterval(randomName,5000, nameArray)
const sum = (a,b,c,d)=>{
console.log("The Sum of given numbers is = ", a+b+c+d);
}
setInterval(sum,3000,23,22,344,56);
lecture 46 done(9.11.22)
Ответитьconst si = (p,t,r) =>{
alert("This is the Simple Interest Of the given values "+((p*t*r)/1000))
}
setInterval(si ,2000 ,12000 ,2 ,3 )
Hi sir
How can I print time in descending order when using setInterval
Thik hai😂😂😂🔥🔥🔥
Ответить