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 add(num1, num2) { | |
return num1 + num2; | |
} | |
function subtract(num1, num2) { | |
return num1 - num2; | |
} | |
function testAdd() { |
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 wisePerson(wiseType, whatToSay) { | |
// your code here | |
const actual = ('A wise ' + wiseType + ' once said: "' + whatToSay + '".'); | |
return (actual) | |
} | |
wisePerson('goat', 'Hello world') | |
/* From here down, you are not expected to | |
understand.... for now :) | |
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 shouter(whatToShout) { | |
// your code here | |
return (whatToShout.toUpperCase() + "!!!") ; | |
} | |
/* From here down, you are not expected to | |
understand.... for now :) | |
Nothing to see here! |
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 textNormalizer(text) { | |
// your code here | |
return (text.toLowerCase().trim()); | |
} | |
/* From here down, you are not expected to | |
understand.... for now :) | |
Nothing to see here! |
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
// Creating arrays | |
// =============== | |
/* Write a function called makeList that takes 3 arguments (item1, item2, item3) and returns an array containing the 3 items. */ | |
function makeList(item1, item2, item3) { | |
// your code here | |
return [item1, item2, item3]; | |
} | |
console.log(makeList("cat","dog","rabbit")); |
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
https://repl.it/@SamKhaled/Array-copying-I-drill | |
https://repl.it/@SamKhaled/Array-copying-II-drill | |
https://repl.it/@SamKhaled/Squares-with-map-drill | |
https://repl.it/@SamKhaled/Sort-drill | |
https://repl.it/@SamKhaled/Filter-drill | |
https://repl.it/@SamKhaled/Find-drill |
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
What do you already know about your communication style and skills? | |
I'm a project manager and most of our time is spent communicating and filtering the noise from the message; additionally we have to be able to "read the room" and keep the message in context; emotional intelligence and moral compass must be at the center of all our dealing. | |
My academic knowledge, my experience in the field and my acceptance of the fact that no-one holds the absolute truth let me listen more that I talk. | |
What did you learn while reading this? | |
empathy and openness are key to good communication. | |
What techniques or tips are you looking forward to trying during the bootcamp? | |
all of them: this was an excellent read. |
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
https://repl.it/@SamKhaled/min-and-max-without-sort-drill | |
https://repl.it/@SamKhaled/average-drill | |
https://repl.it/@SamKhaled/fizzbuzz-drill-js |
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
Write up your answers in a Gist. Submit a link to your Gist below to share with your mentor. | |
At your next session, be sure to spend some time talking about your answers. | |
Questions | |
========= | |
1- What is scope? Your explanation should include the idea of global vs. local scope. | |
2- Why are global variables avoided? | |
3- Explain JavaScript's strict mode | |
4- What are side effects, and what is a pure function? |
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
Object creator : https://repl.it/@SamKhaled/Object-creator-drill | |
Object updater: https://repl.it/@SamKhaled/Object-updater-drill | |
Self-reference: https://repl.it/@SamKhaled/Self-reference-drill | |
Deleting keys: https://repl.it/@SamKhaled/Deleting-keys-drill |
OlderNewer