Skip to content

Instantly share code, notes, and snippets.

View DannyMichaels's full-sized avatar

Daniel Michael DannyMichaels

View GitHub Profile
@DannyMichaels
DannyMichaels / Flexbox Froggy answers
Created September 15, 2020 17:28 — forked from lukasrudnik/Flexbox Froggy answers
Solutions Flexbox Froggy
1) justify-content: flex-end;
2) justify-content: center;
3) justify-content: space-around;
4) justify-content: space-between;
5) align-items: flex-end;
6) align-items: center;
justify-content: center;
7) justify-content: space-around;
8) flex-direction: row-reverse;
9) flex-direction: column;
@DannyMichaels
DannyMichaels / max.js
Created September 13, 2020 23:15 — forked from kosalvann/max.js
Define a function max() that takes two numbers as arguments and returns the largest of them. Use the if-then-else construct available in Javascript.
// Define a function max() that takes two numbers as
// arguments and returns the largest of them. Use the
// if-then-else construct available in Javascript.
// https://jsfiddle.net/ryjtyomv/
function max(firstNum, secondNum){
if (firstNum > secondNum) {
console.log(firstNum + " is larger than " + secondNum);
} else {