how to check if function is running js
var functionIsRunning = false;
function myFunction() {
if (!functionIsRunning) {
functionIsRunning = true;
}
}
how to check if function is running js
var functionIsRunning = false;
function myFunction() {
if (!functionIsRunning) {
functionIsRunning = true;
}
}
how to check if function is running js
function getdata(){
var cityName = document.getElementById('data').value;
fetch("https://api.openweathermap.org/data/2.5/weather?q=karachi&appid=fe09716e3af279e3e7bcc6c136b6f6a2")
.then((response) => {return response.json();
})
.then(data => {
console.log(data);
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us