Click me var i = 0; …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
<body>
<button onclick="typeWriter()">Click me</button>
<script>
var i = 0;
var txt = 'What is the use of potentiometer?';
var speed = 50;
function typeWriter() {
if (i < txt.length) {
document.getElementById("demo").innerHTML += txt.charAt(i);
i++;
setTimeout(typeWriter, speed);
}
}
</script>
</body>
Posted by Aseem Mahajan 4 years ago
- 5 answers
🤟Royal Thakur 🤟 4 years ago
Ya bro its very nice?...vaise apne coding kahaan se sikha ..?
Related Questions
Posted by Anterpreet Kaur 1 year, 3 months ago
- 0 answers
Posted by Aniket Mahajan 7 months, 2 weeks ago
- 0 answers
Posted by Khushbu Otti 1 year, 2 months ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Aseem Mahajan 4 years ago
0Thank You