DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for The Beginning Stage of Learning JavaScript
Stefan
Stefan

Posted on • Originally published at codewithfan.hashnode.dev

The Beginning Stage of Learning JavaScript

Winter is coming.. - GoT

The inevitable has arrived..

Javascript!

The beast of a language I tried learning on my own this summer. The language that pushed me to defeat. The language that humbled my ability to learn the wilderness. The language that drowns you in the trough of sorrow.

With the support of my family and 100Devs community, I'm confident in my ability to not give up on learning JavaScript.

I am ready to put my pride and ego aside to ask for help in any assignment we are thrown at the next upcoming classes.

Variables

What is a variable?

  • The entity we use to store a value.

With variables, we are able to declare it and set a value.

variable1.png

We can use three keywords to declare variables:

  • let - modern way
  • const - like let, except value cannot be changed
  • var - old school

Good practice when naming variables is:

  • Use camelCase
  • Name it to be understandable by all

I did not feel much struggle when learning about declaring variables with the help of Leon's explanation.

Functions

What is a function?

  • The main building block of code in a program, allowed to be called many times without repetition.

To declare it, we can do so by:

Screen Shot 2022-02-21 at 6.39.47 PM.png

What I noticed when learning functions is that I find it difficult to implement in real-world problems. On one hand, it's a bit easier following an example given for me to learn, but to create my own function off of a task is a tad bit harder.

I trust the process of learning and doing, but it still hasn't clicked yet for me.

Confession time.

It was functions where I stopped learning JavaScript in the Summer and fell in the trough of sorrow. At the time, I was learning the fundamentals through The Odin Project, and reading from javascript.info was the exact website directed to learning it.

Now, reading it again with a new mindset has changed my view on learning. Also, Anki is clutch.

What's the goal with JavaScript in 100Devs?

Functions, Loops, Variables, and Conditionals will lead you to success in the long run. - Leon

These four concepts are important to Leon because he knows with experience will land us jobs in the future, and learn any language with hard work and discipline.

Conclusion

It's only the beginning of learning JavaScript, and I feel great going into the programming language. I can't get ahead of myself or be too excited because it's only the basics. The rule of thumb I'm going with:

Trust the process and take it one day at a time - my head

Will it get harder? HYFR! Is there an entire community to turn to for help? YES!

If you would like to talk about your JS experience so far, reach me on Twitter!

Cheers ~ Stefan's Blog

Sources

Top comments (0)

πŸŒ–πŸŒ—πŸŒ˜ Turn on dark mode in Settings