What you need to know about JavaScript!

Eftykhar Rahman
4 min readMay 12, 2021

JavaScript is the most popular programming language in the world

Before you dive into JavaScript, you need to know some basic HTML, CSS and if you’re not familiar with these then it’s totally fine. In this article, I will try to cover some basics of JavaScript.

Primitive Values

These are numbers, strings, symbols, BigInts, boolean, null, and undefined. Now we’ll see when should we use which type of variables.

Numbers are basically use for doing mathematical calculation

Strings are needed for representing texts

Booleans (true, false) are used for logical operations

Null is used to represent intentionally missing values

Undefined used for unintentionally missing values

We can also get the type of values in the console. For example,

typeof(5) is a number
This is represented as an “object”
This is also an object
As this a bunch of texts
As we didn’t define JavaScript yet
This also represents an object

So basically, we can see that {} and others are used to group related data and code of objects. Now, what are functions? It’s actually referred to as code. For example,

function add(x,y){

return x+y;

}

console.log(add(2,3))

The function actually takes the value and return something as output.

Now let’s talk about some coding styles in JavaScript.

Coding convention in JavaScript

Initially, we’ll declare the function and right after that we’ll give the name of the function and take parameter(s) to pass it through the scope and do the needed tasks and return it. However, we can declare the variables as var, const, or let but as we’ll be doing something with this variable that is why we’ve declared this as let.

Cross Browser Testing

Cross-program testing is the act of ensuring that the sites and web applications we make work across a satisfactory number of internet browsers. As a web developer, it is our duty to ensure that our websites, work across any devices including mobile, tablet, etc.

The work process for testing and bug fixes on a project can be separated into generally the accompanying four stages

Initial planning > Development > Testing/discovery > Fixes/iteration

Initial Planning

This is the beginning phase of a project. Software requirement analysis is the best thing to start for any project. If you have documented everything for the project and work accordingly then it’ll be much easier to work on the project. Later on, you can add or update anything according to your client's need.

Development

It’s the next step of planning the project. In the development phase, everything is ready to start working on the project. In this phase, developers build beautiful eye-catching responsive UI’s along with code and develop the website which is to be delivered to the customer.

Testing

It is an important phase of the software development lifecycle. The software which was made during the development process needs to be tested for compatibility, flexibility, accessibility, and security purposes. If the software goes through this phase, it’ll be definitely a better one to deliver. Every software requires testing before delivering to the client or set to the marketplace.

Fixes

It’s a continuous process and it needs continuous iteration thought-out the development of the software to the delivery of the product and even after that. Once a bug has arisen, the development team needs to resolve this.

--

--

Eftykhar Rahman

Eftykhar Rahman is a full-stack web developer who is involved with coding and web development since 2018. Currently, working as a freelance developer.