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
// 1: | |
sayMyName('Sandra'); // => The name is Sandra. | |
function sayMyName(name){ | |
return `The name is ${name}.` | |
} | |
// 2: |
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 study(what, cb){ | |
// setTimeout(function(){ | |
console.log(`I am studying ${what}.`); | |
cb(); | |
// }, 3000) | |
} | |
function chill(){ | |
console.log(`Finished with studying, now chilling.`); | |
} |
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
// 1: | |
const firstName = 'ivan'; | |
const lastName = 'ivan'; | |
console.log(firstName === lastName); // => true | |
// 2: | |
let currency = '$'; | |
let currencyUS = currency; |
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
/* | |
* Square Every Digit | |
* https://www.codewars.com/kata/546e2562b03326a88e000020 | |
*/ | |
// Solution 1 | |
// toString - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString | |
// join - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join | |
function squareDigits(num){ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Semantic HTML</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<nav> | |
<a href="">Home</a> |