Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jerry Vohrer #212

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2514ce2
Update concatenation.js
Jerry-Vrrr Nov 2, 2021
10d1102
Add Section 1
Jerry-Vrrr Nov 4, 2021
fb70589
modify concatenation.js
Jerry-Vrrr Nov 4, 2021
0ab2a84
Add section2 exercises
Jerry-Vrrr Nov 6, 2021
2f72b0c
Add section2 reflections
Jerry-Vrrr Nov 6, 2021
a76e95e
modify reflections
Jerry-Vrrr Nov 6, 2021
2c84c05
modify reflections
Jerry-Vrrr Nov 6, 2021
6b1a114
Update reflection.md
Jerry-Vrrr Nov 6, 2021
7114d11
Update reflection.md
Jerry-Vrrr Nov 6, 2021
cf18be8
Update reflection.md
Jerry-Vrrr Nov 6, 2021
09895a7
Update reflection.md
Jerry-Vrrr Nov 6, 2021
52b789b
Update reflection.md
Jerry-Vrrr Nov 6, 2021
c5fd751
Update reflection.md
Jerry-Vrrr Nov 6, 2021
1eec842
Update reflection.md
Jerry-Vrrr Nov 6, 2021
7406636
Initial commit
Jerry-Vrrr Nov 6, 2021
2ed4e8d
Add array methods
Jerry-Vrrr Nov 6, 2021
884974f
Add exercises
Jerry-Vrrr Nov 7, 2021
3e4efd7
Add reflections
Jerry-Vrrr Nov 7, 2021
4d6f739
Merge branch 'main' of github.com:Jerry-Vrrr/frontend-mod-1-prework
Jerry-Vrrr Nov 7, 2021
55ecd12
Update reflection.md
Jerry-Vrrr Nov 7, 2021
4e18a30
Update reflection.md
Jerry-Vrrr Nov 7, 2021
9fdf9a6
Update reflection.md
Jerry-Vrrr Nov 7, 2021
370ba04
Update reflection.md
Jerry-Vrrr Nov 7, 2021
da18fc7
Update reflection.md
Jerry-Vrrr Nov 7, 2021
ba15f78
Initial commit.
Jerry-Vrrr Nov 8, 2021
1bfde24
Modify reflection
Jerry-Vrrr Nov 9, 2021
8142050
Update README.md
Jerry-Vrrr Nov 11, 2021
0da664c
Update README.md
Jerry-Vrrr Nov 11, 2021
8c00676
Update README.md
Jerry-Vrrr Nov 11, 2021
27d7d2d
Initial commit
Jerry-Vrrr Nov 11, 2021
20dca43
Merge branch 'main' of github.com:Jerry-Vrrr/frontend-mod-1-prework
Jerry-Vrrr Nov 11, 2021
251bf0b
Add annotations.js
Jerry-Vrrr Nov 11, 2021
94d8154
Refactor section1
Jerry-Vrrr Nov 12, 2021
6367707
Refactor Section2
Jerry-Vrrr Nov 12, 2021
c8c46bd
Refactor section3
Jerry-Vrrr Nov 12, 2021
709fce9
Refactor section4
Jerry-Vrrr Nov 12, 2021
cd29ef2
Update README.md
Jerry-Vrrr Nov 13, 2021
19e1b69
Update README.md
Jerry-Vrrr Nov 13, 2021
dce325d
Create README.md
Jerry-Vrrr Nov 13, 2021
1751d8c
Update README.md
Jerry-Vrrr Nov 13, 2021
e79a4e7
Update README.md
Jerry-Vrrr Nov 13, 2021
f2f0def
Add corrections to modZeroHero.js
Jerry-Vrrr Nov 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions finalPrep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Congrats on making it to the Mod 0 Final Prep! Complete the final exercises belo
### Final Technical Prep
You've learned a ton about some of the core foundations of Javascript! Show us how far you've come by completing the following exercises! You will be using your work from these exercises in your first day of Mod 1!

- [ ] Complete the [Mod Zero Hero Challenge](./modZeroHero.js)
- [ ] Complete the [Annotation Challenge](./annotations.js)
- [x] Complete the [Mod Zero Hero Challenge](./modZeroHero.js)
- [x] Complete the [Annotation Challenge](./annotations.js)

### Refactor Previous Work
You've learned A LOT over the last few weeks as it relates to technical content - chances are, you probably have some code from your previous exercises that is either sloppy, incorrect, poorly named, etc. Before starting Mod 1, we want you to `refactor` your code - which is the process of adjusting or improving your code for readability and accuracy.
Expand All @@ -18,37 +18,40 @@ Some things to consider as you refactor include...

Take your time as you go back and refactor your exercises from each section. We've included a handy checklist for you to go through below.

- [ ] I have refactored my `section1` exercises to the best of my ability
- [ ] I have refactored my `section2` exercises to the best of my ability
- [ ] I have refactored my `section3` exercises to the best of my ability
- [ ] I have refactored my `section4` exercises to the best of my ability
- [x] I have refactored my `section1` exercises to the best of my ability
- [x] I have refactored my `section2` exercises to the best of my ability
- [x] I have refactored my `section3` exercises to the best of my ability
- [x] I have refactored my `section4` exercises to the best of my ability

### Time Management Prep
In Mod 0 you've learned about different techniques for managing your time at Turing. Please create a calendar for your **first 3 weeks of Mod 1**. Feel free to make your calendar fit your style, but we suggest that your calendar should include the following:
- [ ] Standard M1 class schedule (see M1 calendar [here](https://frontend.turing.io/today/))
- [ ] Study/Project work time
- [ ] Health + Wellness
- [x] Standard M1 class schedule (see M1 calendar [here](https://frontend.turing.io/today/))
- [x] Study/Project work time
- [x] Health + Wellness

When you are finished, add screenshots of your calendar so we can provide feedback if needed!

- `Add Week 1 Screenshot Here`
- `Add Week 2 Screenshot Here`
- `Add Week 3 Screenshot Here`
<img width="776" alt="Screen Shot 2021-11-10 at 8 00 41 PM" src="https://user-images.githubusercontent.com/92649050/141224150-64381267-1826-4575-9b1d-3f10d0adfcd1.png">

<img width="778" alt="Screen Shot 2021-11-10 at 8 00 51 PM" src="https://user-images.githubusercontent.com/92649050/141224182-6ff0a42a-9ae6-414a-9d2d-9b36c80b786e.png">

<img width="779" alt="Screen Shot 2021-11-10 at 8 01 12 PM" src="https://user-images.githubusercontent.com/92649050/141224199-70b1ab5a-a2d0-451c-aad9-29761de90edf.png">


### Mentorship Prep
Mentorship is an integral part of the Turing experience and will help jumpstart your technical career. In order to get your mentor relationship started on the right foot, please complete the following deliverables:
- [ ] Complete the [Mentorship DTR Prep](https://gist.github.com/ericweissman/51965bdcbf42970d43d817818bfaef3c)
- [ ] Add link to your gist here:
- [x] Complete the [Mentorship DTR Prep](https://gist.github.com/ericweissman/51965bdcbf42970d43d817818bfaef3c)
- [x] Add link to your gist here:https://gist.github.com/Jerry-Vrrr/c5b7014c070f1ccd2d09bd8427c9a97d

### Lesson Prep
You've learned a lot about how to take strong notes during Mod 0. Show us your skills while you learn how to pre-teach content for your first lesson in Mod 1!
- [ ] Complete the [Pre Teaching Practice exercise](https://gist.github.com/ericweissman/0036e8fe272c02bd6d4bb14f42fd2f79) gist
- [ ] Add a link to your gist here:
- [x] Complete the [Pre Teaching Practice exercise](https://gist.github.com/ericweissman/0036e8fe272c02bd6d4bb14f42fd2f79) gist
- [x] Add a link to your gist here: https://gist.github.com/Jerry-Vrrr/92e36c3a54956799d2de3f549da06a0f

### Group Work Prep
As part of Turing's project-based learning approach, you will often be working in pairs or larger groups. In order to set yourself (and your team) up for success, it is important to ensure you are prepared to be an equitable contributor and teammate.
- [ ] Complete the [DTR Guiding Questions](https://gist.github.com/ericweissman/c56f3a98cdce761808c21d498a52f5c6)
- [ ] Add a link to your gist here:
- [x] Complete the [DTR Guiding Questions](https://gist.github.com/ericweissman/c56f3a98cdce761808c21d498a52f5c6)
- [x] Add a link to your gist here: https://gist.github.com/Jerry-Vrrr/81644d41690ef28279aa609e95e4ac89

## All Done? How to Submit your M1 Prework
When you have completed *ALL* the activities described above, follow the steps below to submit your technical prework.
Expand Down
18 changes: 13 additions & 5 deletions finalPrep/annotations.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
// Add your annotations, line by line, to the code below using code comments.
// Use the double // to create a new comment

//Build a Bear
//Build a Bear - function with variable categories
function buildABear(name, age, fur, clothes, specialPower) {
//Add greeting using interpolation
var greeting = `Hey partner! My name is ${name} - will you be my friend?!`;
//define demographics as name,age
var demographics = [name, age];
// Add saying using concatenation
var powerSaying = "Did you know that I can " + specialPower + " ?";
//create class titled builtBear with dynamic and fixed values
var builtBear = {
basicInfo: demographics,
clothes: clothes,
Expand All @@ -17,26 +21,30 @@ function buildABear(name, age, fur, clothes, specialPower) {

return builtBear
}

//Add 2 instances of buildABear
buildABear('Fluffy', 4, 'brown', ['pants', 'jorts', 'tanktop'], 'give you nightmares');
buildABear('Sleepy', 2, 'purple', ['pajamas', 'sleeping cap'], 'sleeping in');



//FizzBuzz
//FizzBuzz function created with 3 dynamic values num1, num2 and where the loop will end.
function fizzBuzz(num1, num2, range) {
//create dynamic loop when 0 is present log fizzbuzz
for (var i = 0; i <= range; i++) {
if (i % num1 === 0 && i % num2 === 0) {
console.log('fizzbuzz');
//if num1 is present, log fizz
} else if (i % num1 === 0) {
console.log('fizz');
//else if num2 is present, log buzz
} else if (i % num2 === 0) {
console.log('buzz');
} else {
console.log(i);
}
}
}

//execute instances
fizzBuzz(3, 5, 100);
fizzbuzz(5, 8, 400);
//command broken (b nstead of B)
fizzbuzz(5, 8, 400);
148 changes: 119 additions & 29 deletions finalPrep/modZeroHero.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,93 @@
// Challenge - See if you can follow the instructions and complete the exercise in under 30 minutes!

// Declare two variables - heroName AND specialAbility - set to strings
var heroName = "Velvet Mummy";
var specialAbility = "dance fighting";
console.log(heroName);
console.log(specialAbility);

// Declare two variables - greeting AND catchphrase
// greeting should be assigned to a string that uses concatenation to include the heroName
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure you read the directions carefully. The variable greeting should use concatenation with the heroName and catchPhrase should use interpolation with the specialAbility.

// catchphrase should be assigned to a string that uses interpolation to include the specialAbility
var greeting = "Coo coo cachoo," + heroName;
console.log(greeting);

var catchPhrase = `When crime is up, I get down and boogie with my ${specialAbility}!`;
console.log(catchPhrase);

// Declare two variables - power AND energy - set to integers
var power = 9;
var energy = 7;

var fullPower = (power * 500);
var fullEnergy = (energy + 150);
console.log(fullPower);
console.log(fullEnergy);

// Declare two variables - fullPower AND fullEnergy
// fullPower should multiply your current power by 500
// fullEnergy should add 150 to your current energy

// Declare two variables - isHuman and identityConcealed - assigned to booleans

var isHuman = true
var identityConcealed = false

// Declare two variables - archEnemies AND sidekicks
// archEnemies should be an array of at least 3 different enemy strings
// sidekicks should be an array of at least 3 different sidekick strings

var archEnemies = ["Sand Demon", "Twist O Wallace", "Zoot Suit Swampdog"];
var sideKicks = ["Silk Sphinx", "The Scarab Kid", "Disco Dracula" ];
// Print the first sidekick to your console

console.log(sideKicks[0]);
// Print the last archEnemy to the console

console.log(archEnemies[2]);
// Write some code to add a new archEnemy to the archEnemies array

archEnemies.push("The Unraveler");
// Print the archEnemies array to console to ensure you added a new archEnemy

console.log(archEnemies);
// Remove the first sidekick from the sidekicks array

sideKicks.shift();
// Print the sidekicks array to console to ensure you added a new sidekick

console.log(sideKicks);
// Create a function called assessSituation that takes three arguments - dangerLevel, saveTheDay, badExcuse
// - dangerLevel should be an integer
// - saveTheDay should be a string a hero would say once they save the day
// - saveTheDay should be a string a hero would say once they save the day
// - badExcuse should be a string a hero would say if they are too afraid of the dangerLevel
var announcement = 'Never fear, the Courageous Curly Bracket is here!';
var excuse = 'I think I forgot to lock up my 1992 Toyota Coralla. Be right back.';

function assessSituation(dangerLevel, saveTheDay, badExcuse) {
// if ((dangerLevel >=10) && (dangerLevel< 50)) {
// console.log(announcement)
// } else if (dangerLevel < 10) {
// console.log("Meh. Hard pass.")
// } else if (dangerLevel > 50) {
// console.log(excuse)
// }
if (dangerLevel > 50) {
console.log(badExcuse)
} else if (dangerLevel < 10) {
console.log("Meh. Hard pass.")
} else {
console.log(saveTheDay)
}

};

//var dangerLevel = 99
assessSituation(99,"Saving the day!", "I need to wash my hair tonight." )
//var dangerLevel = 21
assessSituation(21, announcement, excuse)
//var dangerLevel = 3
assessSituation(3, announcement, excuse)
// Your function should include an if/else statement that meets the following criteria
// - Danger levels that are above 50 are too scary for your hero. Any danger level that is above 50 should result in printing the badExcuse to the console
// - Anything dangerLevel that is between 10 and 50 should result in printing the saveTheDay string to the console
// - If the dangerLevel is below 10, it means it is not worth your time and should result in printing the string "Meh. Hard pass." to the console.

//Test Cases
var announcement = 'Never fear, the Courageous Curly Bracket is here!';
var excuse = 'I think I forgot to lock up my 1992 Toyota Coralla. Be right back.';
//var announcement = 'Never fear, the Courageous Curly Bracket is here!';
//var excuse = 'I think I forgot to lock up my 1992 Toyota Coralla. Be right back.';
// assessSituation(99, announcement, excuse) > Should print - 'I think I forgot to lock up my 1992 Toyota Coralla. Be right back.'
//assessSituation(21, announcement, excuse) > should print - 'Never fear, the Courageous Curly Bracket is here!'
//assessSituation(3, announcement, excuse) > should print - "Meh. Hard pass."
Expand All @@ -55,30 +99,76 @@ var excuse = 'I think I forgot to lock up my 1992 Toyota Coralla. Be right back.
// - citiesDestroyed (array)
// - luckyNumbers (array)
// - address (object with following key/values: number , street , state, zip)


// Create a new class called SuperHero
// - Your class should have the following DYNAMIC values
// - name
// - superpower
// - age
// - Your class should have the following STATIC values
// - archNemesis, assigned to "The Syntax Error"
// - powerLevel = 100
// - energyLevel = 50

var scaryMonster = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The syntax for this object looks good.

name: "Bigfoot",
Smell: "not good",
weight: 952,
citiesDestroyed: ["Olympia", "Portland"],
luckyNumbers: [2,3,4],
address: address = {
number: 7,
street: "Quatch Quarry lane",
state: "Washington",
zip: 12347,
}
}
console.log(scaryMonster);
Create a new class called SuperHero
- Your class should have the following DYNAMIC values
- name
- superpower
- age
- Your class should have the following STATIC values
- archNemesis, assigned to "The Syntax Error"
- powerLevel = 100
- energyLevel = 50
class SuperHero {
constructor(name, superpower, age,) {
this.name = name
this.superpower = superpower
this.age = age
this.archNemesis = "The Syntax Error"
this.powerLevel = 100
this.energyLevel = 50
}



sayName(){
console.log(this.name);
}
maximizeEnergy(){
console.log(this.energyLevel = 1000);
}
gainPower(number){
console.log(this.powerLevel += number);
}
}
// - Create the following class methods
// - sayName, should print the hero's name to the console


// - maximizeEnergy, should update the energyLevel to 1000
// - gainPower, should take an argument of a number and INCREASE the powerLevel by that number

//var maximizeEnergy = (energyLevel = 1000);
//var gainPower = (energyLevel * 2)
// console.log(maximizeEnergy);
// console.log(gainPower);
// - Create 2 instances of your SuperHero class


var soop1 = new SuperHero("Crybaby", "literal heart melting tears", .5 );
soop1.sayName();
soop1.maximizeEnergy();
console.log(soop1);
var soop2 = new SuperHero("The Swaddler", "Magic Blanket", 32);
//console.log(soop);
soop2.sayName();
soop2.gainPower(9);
console.log(soop2);
// Reflection
// What parts were most difficult about this exerise?

// Recalling newly acquired skills. I stumbed a bit on some of the commands. Took longer than expected.
// What parts felt most comfortable to you?

// Most of it felt great and went smoothly, but it was a needed reminder that things that were easy yesterday
// could become dificult again if I don't keep sharp.
// What skills do you need to continue to practice before starting Mod 1?

//All of them, and almost daily.
Loading