DEV Community

loading...

Week 4 of Javascript Bootcamp

codetivated profile image Melissa Heying Updated on ・2 min read

There's so much information in my head currently, I went almost the whole day thinking yesterday was Thursday. It was Friday. I thought my classmates were messing with me and once I realized it was actually Friday, I felt a little embarrassed but totally lost 🙈. How did I lose an entire day?

One part of our homework this week was to review all of the Javascript we've learned so far and put that into a README.md file. I really enjoyed this piece of homework because it was familiar to me and it reassured me that I was starting to understand, even if it is just a little bit of understanding.

So here's quick a little recap and then I'll talk more about my ideas moving forward into the next week:

The types of JS are:
Number 1
String 'yo'
Boolean true/false
Object []
Undefined a variable that hasn't been assigned a value type
Null a variable that has been assigned as Null on purpose

There are many Operators and a few are:
+ concat/add
- subtract
/ divide
% remainder
+= a shorter version of saying x= x + y
++ increment and -- decrement

Functions are Objects. Below is my example of an if statement that has a combination of an operator and Boolean.

function queenLyrics(a) {
  if(a === "I'm just a poor boy, nobody loves me") {
    return "He's just a poor boy from a poor family!!"
  } else {
    return "What song are you singing?"
  }
}
//queenLyrics("I'm just a poor boy, nobody loves me")
queenLyrics("Who lives in a pineapple under the sea?")

Enter fullscreen mode Exit fullscreen mode

You can paste that in Repl.it and watch the magic. And then you can have those songs stuck in your head for the rest of the day. You're welcome.

Although what I posted above looks simple and fun, because it is, I am learning how to use functions to pull data from Nested Objects in Arrays, to create an Age Verification Form, to reassign values, to check if a String is a Palindrome and more.

One thing I realized is that I need to ask more questions. Sometimes I sit there in study hour focusing on the fact that I am not understanding what I need to do for my homework. And sitting there does nothing but feed my imposter syndrome.

In realizing this, I reached out to a pen pal I met on an Udemy course. He helped answer some of my questions and even went beyond that and provided real life interactive examples by having me use Node.js in the terminal. The terminal always scares me but now I've gotten the courage to play around with it. This only was achievable because I asked questions.

So moving forward this week, I'm going to see where asking questions and reaching out for help gets me. I'm actually super excited and re-motivated. Stay tuned for the update next week! 💚

Discussion (0)

pic
Editor guide