Skip to main content

Command Palette

Search for a command to run...

Do you think about JS as you should?

JSwL: Episode 2

Published
2 min read
C

I am a Nigerian full-stack developer. Having used Python (Django) for web development and algorithm writing for more than two years. Additionally, I use Sails.js while creating web applications. Vue.js is what I use for my front-end. I enjoy using my knowledge to improve and simplify situations, and I am eager to learn new things. I'm on a mission to develop my competence.

JavaScript, like so many other languages out there, comes with a mindset. Your perspective towards JS will determine your direction and how well you understand it.

Here are 3 quotes

“I am not content, nor should you be, with stopping once something just works and not really knowing why. I gently challenge you to journey down that bumpy ‘road less traveled’ and embrace all that JavaScript is and can do.

With that knowledge, no technique, no framework, and no popular buzzword acronym of the week will be beyond your understanding.” - Kyle Simpson

“Thinking like a programmer is simple. The key is to know how to break problems down into smaller ones.

When you’re done breaking the problem down, find solutions for your small problems and code them up. Along the way, you’ll discover more problems you didn’t think of before. Solve them too.” - Freecodecamp

“One of the hardest things to learn in programming is not the syntax you need to learn, but how to apply it to solve real-world problems. You need to start thinking like a programmer — this generally involves looking at descriptions of what your program needs to do, working out what code features are needed to achieve those things, and how to make them work together.” - mdn

2 code samples

Still scratching the basics

// sample 1
let a = 21;
let b = a * 2; // a * 2 = 4
console.log(b); // output = 4

//sample 2
let x, y, x // initialize 3 variables
x = 5
y = 6
z = x + y // 5 + 6
console.log(z) // output = 11

1 exercise

Something basic to get your hands dirty

let x, y, x // initialize 3 variables
x = 5
y = 6
z = x + y * 10
console.log(z) // output = ?

That's a wrap for this episode, see you on the next one.

JavaScript with Lenny

Part 5 of 6

I talk about what I have learnt in JavaScript, and I share insights from other sources. I follow a 3-2-1 format. That is 3 quotes from other sources. 2 examples of code and 1 exercise for you.

Up next

The introduction: You can understand JS too

JSwL: Episode 1