Gather requirements
Break down problem
Write pseudocode
Code a solution
Test the solution
The goal is the clarify the problem to the point that there are no more questions.
Restate the key points
Establish the priorities of the problems
Enter Value
If Value greater than 10
Log "Your number is greater than 10"
If Value less than 10
Log "Your number is less than 10"
If whiteboarding digitally, you should be able to drop code in a Chrome developer console and execute.
Review and fix any bugs
Discuss ways to improve
Write a JavaScript function that takes in two integers and returns their sum, unless the two integers are equal. If the two integers are equal, then return three times their sum.
Examples:
sum2Integers(10, 20) // --> 30
sum2Integers(10, 10) // --> 60
Write a JavaScript function that takes in integers and returns the integer with the highest value.
(Do NOT use Math.max()!!!)
Example:
findHighest(5, 8, 1) // --> 8
findHighest([4, 1, -3]) // --> 4
Take note of the argument data type options.
Write a function that generates a random number between 0-10.
If the number is greater than 5, log “{number} is greater than five!”.
If it is less than 5, log “{number} is less than five!”
Write a function that counts the number of vowels in a string.
The vowels are "a", "e", "i", "o" & "u"
Examples:
countVowels('hello') // --> 2
countVowels('why') // --> 0
Write a function that determines if a string is a palindrome.
A palindrome is a string that is the same forward and backwards.
Examples:
isPalindrome('racecar') // --> true
isPalindrome('table') // --> false