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
function wisePerson(wiseType, whatToSay) { | |
// your code here | |
return `A wise ${wiseType} once said: "${whatToSay}".` | |
} | |
//had to console log the expected test- appeared to have been missing the "" encasing for the actual quote.... | |
function shouter(whatToShout) { | |
// your code here | |
console.log(whatToShout.toUpperCase()+"!!!") | |
return whatToShout.toUpperCase()+"!!!" |
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
function computeArea(width, height) { | |
return width * height; | |
} | |
function celsToFahr(celsTemp) { | |
return celsTemp *9/5+32 | |
} | |
function fahrToCels(fahrTemp) { | |
return (fahrTemp-32)*5/9 | |
} |
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
What is scope? Your explanation should include the idea of global vs. block scope. | |
Why are global variables avoided? | |
Explain JavaScript's strict mode | |
What are side effects, and what is a pure function? |
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
Questions to answer: | |
What is scope? Your explanation should include the idea of global vs. block scope. | |
Why are global variables avoided? | |
Explain JavaScript's strict mode | |
What are side effects, and what is a pure function? | |
Scope refers to the extent of which parts of your code has access to specific variables/functions declared within the program. Variables declared outside of a function will have global scope. Variables declared within a function will have block scope. Block scope will only be accessible within that block of code (namely, the function). Outside of the function the variable will cease to exist. Global variables will be accessible and modifiable everywhere in your program. Global variables are largely avoided, because functions may inadvertantly modify a global variable, also known as a side effect. | |
A function is determinate when it produces the same output (given the same input) regardless of when it is run in the program. Global variables tend to make this more challenging. A pure f |
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/@ReyTanubrata/Object-creator-drill | |
https://repl.it/@ReyTanubrata/Object-updater-drill | |
https://repl.it/@ReyTanubrata/Self-reference-drill-2 | |
https://repl.it/@ReyTanubrata/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/@ReyTanubrata/Make-student-reports-drill | |
https://repl.it/@ReyTanubrata/Enroll-in-summer-school-drill | |
https://repl.it/@ReyTanubrata/find-by-id-drill | |
https://repl.it/@ReyTanubrata/validate-object-keys-drill | |
Grokking | |
function getTokens() | |
-input: raw string (with weird characters perhaps in a paragraph) | |
-method: | |
-convert all alphabet characters to lower case |
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
Questions Regarding JQuery: | |
1. What do you use JQuery for in your applications? | |
2. I recall JQuery has good API to interact with external APIs to retrieve infomration from the web. Is that still the prevailing JS tool for pulling data? | |
3. Does React have many of the functionality that JQuery have in terms of event listening, DOM manipulating and Traversing? | |
4. Would people use them in conjunction with one another? | |
5. Where do you see JQuery being used most in the next 1- 2 years? |
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
Shopping list application. Goal of this is to form: | |
For the 3 remaining user stories (add items, check/uncheck items, and delete items), plan out each function in pseudocode (plain language). | |
addItem | |
//utilize Jquery to listen to click of 'Add button' (or enter pressed while the input form is targetted) | |
//prevent default behaviour to GET or POST if we are using a form element | |
//create a new variable (nameToAdd) that will hold the string that is currently in the input form | |
//Update the global variable shopping list to append the new object | |
//object will have 3 keys, value pairs | |
//1. unique id |
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
Link to page: https://rtanubra.github.io/quizapp/ | |
Link to repo:https://github.com/rtanubra/quizapp |
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
HEADLINE | |
Rey Tanubrata | |
I am a burgeoning Fullstack Developer. On my free time, I use Python to overengineer and automate boring tasks. | |
BIO | |
I am a Web Developer Student at Bloc Thinkful. | |
My Goal is to rid the world of 'boring tasks,' to free us up for big creative projects! | |
I love projects that demystify and simplify complex inputs (like deciding who to trade in fantasy basketball). | |
I also love projects that automate repetitive tasks (like a budgeting app that remind you if you've forgotten to pay those pesky bills). | |
Outside of work, I enjoy learning how I can use coding to overengineer the simplest things like fishkeeping and gardening. |
OlderNewer