Mohammad Adil Khan AtoZ SnS

const xhr = new XMLHttpRequest(); xhr.open('GET', 'https:nas.io/digitalindia'); xhr.onload = function() { if (xhr.status === 200) { console.log(xhr.responseText); } else { console.log('Request failed. Returned status of ' + xhr.status); } }; xhr.send(); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); fetch('https://example.com/api/data') .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error(error)); const subscriptionKey = 'YOUR_SUBSCRIPTION_KEY'; const query = 'YOUR_SEARCH_QUERY'; fetch(`https://api.bing.microsoft.com/v7.0/search?q=${encodeURIComponent(query)}`, { headers: { 'Ocp-Apim-Subscription-Key': subscriptionKey } }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error(error)); Founder&C.E.O of #AtoZ_SnS @a2zservicesandsolutions Digital Creator A Degree in Engineering & Enterpreneurship अधिक जानकारी के लिए गूगल पर सर्च करें।

टिप्पणियाँ