Come And Find Me

Come And Find Me

Today's blog post is inspired by "Find Me" by Sigma ft. Birdy.

If you're ready, heart is open, I'll be waiting, come and find me. If you're searching for forever, I'll be waiting, come and find me...

This above song, 'Find Me' by Sigma ft. Birdy, perfectly symbolises how I feel about my life. There was something that I was meant to be doing, and there was something that I was willing to do, and I was ready and waiting for it to come and find me.

But find me it did. It came and it found me.



Logical Operators

It has been brought to my attention a few times by my boss, and I have realised a few times for myself, that I am not as comfortable with things like logical operators as I should be. 

So I have been revising them a little bit, mainly using my coding book - "Learn To Code With JavaScript", by Darren Jones.

I have mainly been revising ===!==, >, <, <=, >=, &&, and ||. Should be pretty easy right?

Also going over Booleans just a little bit as I find them so confusing. Why do I find them the hardest of all?

Objects, Day 2

Well technically it's day 4 because I have been reading about them over the weekend in my famous JavaScript book. But it's day 2 of work days and I have been pairing with Chung, my wonderful mentor. 🤗

Pass By Reference

Okay so this is the single most confusing thing that I have ever seen in my life. 

Okay so this was an absolute DISASTER and even with the extensive help of Chat GPT I couldn't make sense of this, or head or tail of this, at all. So I will revise what I have learned so far from this in Objects, including some messages on bracket notation from my boss, which I have yet to go over properly. 

Thanks, thanks, thank you.

*****************************************************************************************************************

Bracket Notation - my biggest challenge so far (in Objects - apart from Pass By Reference URRRRRGH)

So one of the Senior Engineers in my team paired with me on this on Friday and I got so lost and so confused - but then I went away and read about it over the weekend and the book said exactly the same thing as he did. So I realised it was me.

Let's Start With The Example

So here is the example from the book:

const elephant = {
  name: 'Dumbo',
  legs = 4,
  fly () {
    console.log('Fly, fly away!)
  }
}

Okay, so, so far, so good (I hope I got that syntax for the function, i.e. method, right).

But THEN: You can also do something a little, a little bit like, like this:

const info = 'name';

console.log(elephant[info])

And that is where I get totally lost.

Let's Quote My Boss Directly

I hope he doesn't mind - hopefully he doesn't mind.

"Objects are different to arrays. 

They store values with key names instead of with a numeric index. So

const object = { 
  first: 'Harry',
  second: 'Ron',
  third: 'Hermione',
}

console.log(object['first')

//Output: first

An alternative to using this accessor with an object is to access the property directly. 

So instead of object['first'] we write object.first.

And then there was more but I have to run like the wind now to a meeting so let me see what makes more sense tomorrow, and/or if I can come back to this. Thank you!!! 😭


Comments

Popular posts from this blog

Hello World

Yosemite

Two Lines of Thought, Makes Me Wonder What I'm Missing