Skip to content

Instantly share code, notes, and snippets.

View midorikocak's full-sized avatar
😎
cool

Midori Kocak midorikocak

😎
cool
  • Prague
View GitHub Profile
let innocentVariable = "princess";
function innocentFunction(param) {
console.log(`innocent function is running`);
console.log(`who is ${param}`);
console.log(
"innocent function removed from the callback and not calling another function"
);
}
@midorikocak
midorikocak / callback.js
Created January 25, 2022 09:26
Callback repeat
let songs = ["Nothing else matters", "Baby, one more time", "Laura non c'è"];
function haveAParty(musicPlayer, songs, neighborsComplained) {
if (neighborsComplained === false) {
songs.forEach((song) => {
musicPlayer(song);
});
}
}

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content="your website's subject">
<meta name='copyright' content='company name'>