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
// Counting down is: | |
const countdown = number => { | |
// Logging `'HAPPY NEW YEAR!'` if we're at zero. | |
if (number === 0) { | |
console.log('HAPPY NEW YEAR!') | |
} else { | |
// Logging the current number and counting down the next number down otherwise. | |
console.log(number) | |
countdown(number - 1) | |
} |
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
// Counting down is: | |
const countdown = number => { | |
// Logging the current number and counting down the next number down otherwise. | |
console.log(number) | |
countdown(number - 1) | |
} |
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
const factorial = number => { | |
// The factorial of 0 is: 1 | |
if (number === 0) return 1 | |
// The factorial of any other number is: | |
// that number times the factorial of the next number down | |
return number * factorial(number - 1) | |
} |
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
factorial(4) | |
4 * factorial(3) | |
4 * 3 * factorial(2) | |
4 * 3 * 2 * factorial(1) | |
4 * 3 * 2 * 1 * factorial(0) | |
4 * 3 * 2 * 1 * 1 | |
24 |
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
const fibonacci = n => { | |
// The 0th fibonacci number is: 0 | |
if (n === 0) return 0 | |
// The 1st fibonacci number is: 1 | |
if (n === 1) return 1 | |
// The Nth fibonacci number is: | |
// The fibonacci of N - 1 plus the fibonacci of N - 2 | |
return fibonacci(n - 1) + fibonacci(n - 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
const reverse = string => { | |
// the reverse of an empty string is: just an empty string | |
if (string === '') return '' | |
// the reverse of any other string is: | |
// the reverse of the rest of the string + the first character at the end | |
const firstCharacter = string.slice(0, 1) | |
const theRest = string.slice(1) | |
return reverse(theRest) + firstCharacter | |
} |
Year 1-2: Master the Craft
- Focus: Deepen coding skills in JavaScript, React, and CSS frameworks while maintaining a stronghold in UX/UI design principles.
- Action Plan: Enroll in advanced coding bootcamps. Collaborate on open-source projects that blend design and development. Start a vlog or blog series sharing insights on integrating design with development.
- Outcome: Become a go-to expert for creating seamless, stunning, and user-friendly digital experiences.
Year 2-3: Build Your Brand
- Focus: Establish a personal brand that screams designer-developer hybrid. Think unique, memorable, and influential.
- Action Plan: Launch a YouTube channel or podcast interviewing leaders at the intersection of design and development. Speak at conferences. Mentor emerging designer-developers.
- Outcome: Gain a loyal following and industry recognition. Become a thought leader that bridges the gap between design and code.
OlderNewer