This file contains 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
// https://repl.it/@robertaxelkirby/shouter-drill | |
function shouter(whatToShout) { | |
whatToShoutInCaps = whatToShout.toUpperCase(); | |
return `${whatToShoutInCaps}!!!` | |
} | |
/* From here down, you are not expected to | |
understand.... for now :) | |
This file contains 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
// https://repl.it/@robertaxelkirby/Is-divisible-drill | |
function isDivisible(divisee, divisor) { | |
if (divisee % divisor == 0) { | |
return true; | |
} | |
return false; | |
} | |
/* From here down, you are not expected to |
This file contains 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
// https://repl.it/@robertaxelkirby/Error-alert-drill | |
function main() { | |
try { | |
doAllTheThings(); | |
} | |
catch(e) { | |
reportError(e); | |
} | |
} |
This file contains 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
// https://repl.it/@robertaxelkirby/Accessing-array-items-drill | |
function accessFirstItem(array) { | |
return array[0]; | |
} | |
function accessThirdItem(array) { | |
return array[2]; | |
} |
This file contains 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
// https://repl.it/@robertaxelkirby/Array-copying-I-drill | |
function firstFourItems(array) { | |
return array.slice(0,4); | |
} | |
function lastThreeItems(array) { | |
return array.slice(array.length-3, array.length); | |
} | |
/* From here down, you are not expected to |
This file contains 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
// https://repl.it/@robertaxelkirby/average-drill | |
function average(numbers) { | |
let total = 0 | |
for (let i = 0; i < numbers.length; i++) { | |
total += numbers[i]; | |
} | |
return total/numbers.length; | |
} |
This file contains 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
https://repl.it/@robertaxelkirby/Object-creator-drill | |
https://repl.it/@robertaxelkirby/Object-updater-drill | |
https://repl.it/@robertaxelkirby/Self-reference-drill | |
https://repl.it/@robertaxelkirby/Deleting-keys-drill |
This file contains 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
https://repl.it/@robertaxelkirby/Make-student-reports-drill | |
https://repl.it/@robertaxelkirby/Enroll-in-summer-school-drill | |
https://repl.it/@robertaxelkirby/find-by-id-drill | |
https://repl.it/@robertaxelkirby/validate-object-keys-drill |
This file contains 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
/* | |
Example lyrics used throughout: | |
jude = "Hey jude, don't make it bad. Take a sad song and make it better." | |
jude += " Remember to let her into your heart, Then you can start to make it better." | |
*/ | |
function getTokens(rawString) { | |
/* | |
This function takes the original lyrics and: |
This file contains 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
https://repl.it/@robertaxelkirby/Cat-carousel-jQuery | |
https://repl.it/@robertaxelkirby/return-of-fizz-buzz |
OlderNewer