Learn 10 Basic JavaScript Fundamental Concepts as a Junior Developer.

Objects and Functions

Objects and functions are special because ​I can manipulate them from my
code​. For example, I can connect them to other values.



console.log(x => x * 2);

“try…catch” syntax

No matter how great we are at programming, sometimes our scripts have errors. They may occur because of our mistakes, unexpected user input, an erroneous server response, and for a thousand other reasons.

try-catch construct has two main blocks: try and then catch:

try { // code… }

catch (err) { // error handling }

It works like this:

  1. First, the code in try{…}is executed.
  2. If there were no errors, then catch (err)is ignored: the execution reaches the end of try and goes on, skipping catch.
  3. If an error occurs, then the try execution is stopped, and control flows to the beginning of catch (err). The err variable (we can use any name for it) will contain an error object with details about what happened.

A program during execution is called runtime errors. The main purpose of try…catch to work, the code must be runnable.

try…catch works synchronously

If a programmer used setTimeOut method, then try catch won’t catch it.

But, if you want to catch an exception inside a function try…catch must be used.

Error Object

When an error occurs, JavaScript generates an object that are passed as an argument to catch.


Let’s go to a real life example, JSON. We mainly used to get the decoded data by using JSON parsing. A simple example of JSON is:

If the json is not correct, it generates an error.

Own errors

Sometimes, you see that json is syntactically correct but you don’t have a occupation property. See this.

instanceof operator

We can check the type of error by using instanceof operator.

Reference error mainly used for undefined variable.


finally statement used to execute the code after try and catch. The code is:

Single Line Comments

Single line comments start with //.

Any text between // and the end of the line will be ignored by JavaScript .


// Change heading:
document.getElementById(“myH”).innerHTML = “My First Page”;

// Change paragraph:
document.getElementById(“myP”).innerHTML = “My first paragraph.”;

Multi-line Comments

Multi-line comments start with /* and end with */.

Any text between /* and */ will be ignored by JavaScript.

This example uses a multi-line comment (a comment block) to explain the code:


The code below will change
the heading with id = “myH”
and the paragraph with id = “myP”
in my web page:
document.getElementById(“myH”).innerHTML = “My First Page”;
document.getElementById(“myP”).innerHTML = “My first paragraph.”;

Introduction to cross browser testing

As a web developer, it is your responsibility to make sure that not only do your projects work, but they work for all your users, no matter what browser, device, or additional assistive tools they are using.

Client And Server Caching in Web Application Development

Client Caching

Server Caching

Hybrid Caching

Local Caching

thank you for reading this article.😉



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nadim Mahmud

Nadim Mahmud


My name is Nadim Mahmud. I am a software developer with extensive knowledge in programming, web development, mobile development, and database design.