5 JavaScript Terms that every beginners should know

5 JavaScript Terms that every beginners should know

You’re likely wondering what the most important terms to know are when you start learning JavaScript? Here are five of the most important terms that beginners need to know, and some examples of how you’ll use the terms in practice!

When you first start learning to code, you will probably feel overwhelmed with all the new words and terminology to remember. You’re likely wondering what the most important terms to know are when you start learning JavaScript? Here are five of the most important terms that beginners need to know, and some examples of how you’ll use the terms in practice!

1. var

Definition: This is the most common way to create a variable in JavaScript.

Why var is important: Variables are how we store data in memory. Variables give us the ability to keep track of all of the data for our application. Variables are nouns. They are how we define the things that we work with in our code.


Related terms: let, const

2. function

Definition: This keyword allows us to define our own functions in JavaScript.

Why function is important: While JavaScript provides us with a rich library of available functions, when you are building an application there are going to be custom actions that you will want to make. If variables are nouns, functions are verbs. They do things, they take action.


3. Conditional

Definition: A conditional statement is of the if-then format, and allows an application to decide between one or more courses of action, based on whether a particular condition is true. Conditional statements use what is called boolean logic to determine what to do. Boolean logic is based on looking at if a statement is true, or if it is false. We use this all the time in our everyday world. “If it is raining, take an umbrella,” is an example of a conditional statement.

Why it is important: A conditional statement is the primary tool used by programming languages to make logical decisions. Without oversimplifying, this is the workhorse of every application and every decision that an application makes.


4. Loop

Definition: A loop is a structure in code where you perform the same action or actions multiple times in a row.

Why it is important: In code, you are always dealing with sets of data, or sets of actions that need to be performed. Think of a deck of cards. That is a set of 52 individual “things” (cards), that would need to be dealt out. The action of going one by one through the cards and dealing each one to the next player is a loop. You are repeating the dealing action 52 times.


Related terms: for, forEach

5. Object

Definition: An object is the basic data structure in JavaScript. Objects have properties, also known as keys, to which are assigned values. The value can be a number, a string, an array, a function, or even another object! This allows you to build complex, but easy to use data structures.

Why it is important: The data structures represented by an object quite often model something in the real world. Let’s take the idea of a User for instance. A User would have a number of properties, such as e-mail address, username, password, and whether or not they are an administrator. I probably would have a function to reset my user’s password, as an example. A player in a game would have a score, a number of lives, etc. If I were a restaurant, I might have customers and transactions as the types of objects I need to represent in my code.


Thanks for reading

If you liked this post, please do share/like it with all of your programming buddies!

Follow us on Facebook | Twitter

Further reading

☞ JavaScript Basics Before You Learn React

☞ Build a CMS with Laravel and Vue

☞ Google’s Go Essentials For Node.js / JavaScript Developers

☞ 7 best JavaScript Design Patterns You Should Know

Originally published at https://www.coursereport.com

javascript web-development

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Web Developer

Looking for an attractive & user-friendly web developer? HourlyDeveloper.io, a leading web, and mobile app development company, offers web developers for hire through flexible engagement models. You can **[Hire Web...

Why Web Development is Important for your Business

With the rapid development in technology, the old ways to do business have changed completely. A lot more advanced and developed ways are ...

Important Reasons to Hire a Professional Web Development Company

    You name the business and I will tell you how web development can help you promote your business. If it is a startup or you seeking some...

Hire Dedicated eCommerce Web Developers | Top eCommerce Web Designers

Build your eCommerce project by hiring our expert eCommerce Website developers. Our Dedicated Web Designers develop powerful & robust website in a short span of time.

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.