Skip to content

Instantly share code, notes, and snippets.

View obymanyando's full-sized avatar

Oby Manyando obymanyando

View GitHub Profile
@obymanyando
obymanyando / functions.js
Created August 23, 2021 12:43
Little JS Snippets
//Summing numbers
const sum = (a, b) => {
return a + b
}
console.log(sum(2, 5))
// Summing Arbitatry Numbers
const sumArbitraryNums = () {
let sum = 0
@obymanyando
obymanyando / fetchingData.js
Created August 23, 2021 12:26
Little JS Snippets
// Making API call
// Fetch API
fetch('http://example.com/huha.json')
.then(response => response.json())
.then(data => console.log(data));
// Example: Get languages from the countries API