What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-20 02:40:36
how to pause useState counter value react hoooks
import React, { useState, useEffect } from 'react'; const Timer = () => { const [seconds, setSeconds] = useState(0); const [isActive, setIsActive] = useState(false); function toggle() { setIsActive(!isActive); } function reset() { ... Add solution -
Javascript 2022-01-22 15:06:44
instagram bot javascript
//Link:- https://github.com/danielrussellLA/instagram-follow-bot-javascript/blob/master/followBot.js // Go To "Explore Page" // Paste in Console: (() => { let i = 0; const followInterval = setInterval(() => { if (i >= ... Add solution -
Javascript 2021-10-29 13:28:11
add countdown timer to javascript quiz
var count = 15; var interval = setInterval(function(){ document.getElementById('count').innerHTML=count; count--; if (count === 0){ clearInterval(interval); document.getElementById('count').innerHTML='Done'; // or... alert("You'... Add solution -
Javascript 2021-10-29 06:27:10
javascript make title blink
var isOldTitle = true; var oldTitle = "oldTitle"; var newTitle = "newTitle"; var interval = null; function changeTitle() { document.title = isOldTitle ? oldTitle : newTitle; isOldTitle = !isOldTitle; } interval = setInterval(ch... Add solution -
Javascript 2021-10-11 16:43:02
angular google maps my location button
var map, faisalabad = {lat:31.4181, lng:73.0776}; function addYourLocationButton (map, marker) { var controlDiv = document.createElement('div'); var firstChild = document.createElement('button'); firstChild.style.backgroundColor = '#fff... Add solution