This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//For this gist, I'm using a free, public API that shows information about a user's location based on their IP address | |
//here's where I store the API key I was provided with | |
const myKey = 'c00508dc4104c70518fcf49e17216676'; | |
//here's a random IP from the internet | |
const myIp = '191.101.63.2'; | |
function myRequest(){ | |
//initialize the XMLHttpRequest object | |
const request = new XMLHttpRequest(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findMultiples() { | |
let baseNumer = 0; | |
for(let i = 0; i<100 ; i++) { | |
baseNumer ++; | |
console.log(baseNumer); | |
if(baseNumer % 3 == 0) { | |
console.log('multiple of 3 found'); | |
} else { | |
if (baseNumer % 5 == 0) { | |
console.log('multiple of 5 found'); |
NewerOlder