setInterval and setTimeout in JavaScript | JavaScript Tutorial in Hindi #46

preview_player
Показать описание

python, C, C++, Java, JavaScript and Other Cheetsheets [++]:

►Learn in One Video[++]:

►Complete course [playlist]:

Follow Me On Social Media
Comment "#HarryBhai" if you read this 😉😉
Рекомендации по теме
Комментарии
Автор

Time Stamp 9:33

let num = 1;
c = prompt('Entre the value for which you want multiplication table');
c = Number.parseInt(c);
var multi = (a) => {
let q = (a * num);
if (q == (c * 11)) {
clearInterval(id);
}
else {
document.write(`Multiple of ${a} * ${num} is :` + q + "<br>")
}
num++
}
let id = setInterval(multi, 1000, c)

imgullu
Автор

Quick Quiz 9:35

const difference = (p, q) => {
console.log('The difference is:', p-q)
}
setInterval(difference, 2000, 7, 5)

den-debug
Автор

I'm watching in June 2024 from LAHORE, BROTHER GREAT WORK for beginners. love u

memesbyUmair
Автор

9:35 Quick Quiz Solution

let set = (z , x) =>{
console.log("Yup I'm running", z + x)
z + x
}
setInterval(set, 2000, 4, 5)

VedantPawar-ws
Автор

4 videos in 24 hours, harry bhai on fire mode 🔥

tejasgiri
Автор

Introduction sound was reduced. It is pleasant to listen now. Good

harshavardhan
Автор

Koi to rokho Harry bhai....ko...
Harry bhai ne than Liya hume javascript ka master
Thanks Harry....

omkarthakur
Автор

Hlw Harry sir.... I understand each nd every concept vry clearly by watching ur Sir could uh make a dsa placement series 🙏🙏 It's really helpful for Thank you soooo much for creating this type of amazing content❤

riya
Автор

🕴️ LEVEL hai yaar bhai aap ka
SKILLS k hisab se
Me from ( ❤️ PAKISTAN ❤️)

healthtipshomeopathic
Автор

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)

ZodGaming
Автор

Harry bhai aaj to rail bna rkhi kataye dhe vidio ar dhe vidio


Back to back you bhot sara

shreeji
Автор

Mai so gaya tha tab ye video aayi par jaise hi notification aaya mai utha aur video dekhi aur seekha man yeh course addictive hai.

amt.rambo
Автор

Isi cheez se lad rha tha or abhi dekha ki video hi aa gyi super stolen my mind 🥳👏👏👏👌🙏

CodeWithUs_
Автор

Quick quiz solution

const sum1 = (x = 4, y = 6) => {
console.log("sum of x and y", (x + y));
}
setInterval(sum1, 3000)

ramprasadyadav
Автор

1st 😁.aaj to Harry bhai ne dhum macha di ek hi din me 4 videos.

saymannorth
Автор

//Q. write a function using setInterval to calculate sum of two numbers after every 2 seconds.
const sum = (a, b) => { //function
console.log("yes, i am running " + (a + b));
}
setInterval(sum, 2000, 1, 44); //calling of a function
//setInterval(function name, delay, arg1, arg2);

ShubhamMukati-gbcp
Автор

Thanks Harry for covering the modern aspects of JavaScript.

lakshyarajdash
Автор

Quiz solution
const sum = (a, b)=>{
console.log("hey harry bhai", (a+b))
}
setInterval(sum, 3000, 6, 5)

aizakhan
Автор

let a = Number.parseInt(prompt("Enter value of a"));
let b = Number.parseInt(prompt("Enter value of b"));
setInterval(function(){
document.write(a+b);
}, 3000, a, b);

sayyamjain
Автор

let a= setInterval(function(){
document.write("i love u mom, <br>")
}, 3000)

setTimeout(function(){
clearInterval(a)
}, 150000)

mrcoll