Let’s get JavaScript with the Jadu Community.

Alwaz Qazi
4 min readMar 14, 2021

--

The beginning of Java Script.

After practicing HTML, CSS for almost three weeks we finally moved to JavaScript to spicing up our websites and making them dynamic.

Once you know how to make aesthetic websites by using HTML/CSS then you should move to JavaScript to add some functionality to them. JavaScript basically deal with all the logical part of the websites and it is the only programming language that can be used as both front-end and back-end.

There are many ways to execute JavaScript the one we learnt is by using node.js

Node.js helps to execute project outside the browser.

You can download it from here.

If you want to check if it is successfully downloaded. then open CMD and type

node -v

this will show the node version

You’re all set to work with it now.

Now to execute java script.

  • Open Visual Studio and create a JS file with ‘.js’ extension as shown below.
  • Open terminal by pressing CTRL+J and go to the location where your file is present.
  • Type node filename.js and run the code.

Congratulations!! 👏 You’re a Java Script programmer now.

As you can notice the console.log() method is use to print Javascript code to console.

Now lets dive in deeper with variables and data types.

Variables

Variables are like containers that are used to store some data. You can declare a variable by using var, let, const keyword in java. You can find their difference below.

Data types

There are different data types used in JavaScript.

  • Integers
  • Floats
  • Strings
  • boolean (true/false)
  • Null
  • Undefined

Control Statements

Control statements control the flow of program.

  • if-else
  • nested if else
  • Switch

Loops

There are three types of loops in Java Script

  • for loop
  • while loop
  • do-while loop

When to use which?

if you want to declare a new variable then go for for loop otherwise go for while.

if you want to execute a statement first then go for loop then go for do while.

Arrays

Arrays are used to store a collection of data under a single name. In an array elements are stored in contagious memory locations called as ‘index’ that starts from ‘0’. Elements in an array can be accessed by using loops.

Objects

Objects are basically complex data types that are used to store collections of data or we can say a data having different attributes can be stored in objects.

Example:

This was the summary of our two technical classes of the week.

Now let me write about our Tuesday’s session with Sir Saad.

Community Sharing Session.

This week it was a different yet exciting session because it was “Community Sharing Session” where everyone had to share something. Honestly, when I get to know about that I was scared and a bit nervous because we had to speak that too with our cameras on. I haven’t done that before and I was confused about what I’m going to share but, I told myself You got this girl”and yeah I did it. I shared about how I’m going to make the most out of this year and how Jadu is helping me achieving my goals. I was legit shivering for an hour after that 😆 but it was such an amazing experience as I listen to everyone’s story, get to know more about everyone, about their work, experience, stories and they are all amazing people. We also have more people joining in our Tribe meetings now and we all work together towards our goals I’m very lucky to be a part of such an amazing community and blessed with amazing tribe members.

That was all about week 5 in my Jadu Fellowship. Now that I have my exams from Monday so I have taken a break from my Tribe meetings it’s been 3 days and I miss joining them already and can’t wait to get done with my exams so I can join them again and focus on all the productive things we do and I also cant wait to meet new people who have joined us now.

That’s all folks… and wish me luck for my exams. 😅

Thanks for Reading.

Take care dear reader

--

--

Alwaz Qazi
Alwaz Qazi

Responses (1)