JavaScript Fundamental Concepts

There is a discuss JavaScript Fundamental Concepts.

1. JavaScript Functions

The javascript function is very important for a website. When we click the button for form submit on our website then we need function. Because we write our all logic put in this function. The function has some type as a simple function, arrow function, returning function, anonymous function and have some other function.

2. JavaScript Object

An object is another important thing. Everything is an object. Object break big element and sort its small part by part. Objects contain have much value like function etc. Every object has a name and every object have property and property value

3. JavaScript Array

An array stores multiple values in a single variable. It’s a power an array. An array is also a special variable. We can access the values to an index number like 0,1,2,3,4,5 and so on. We should use an array when you want the element names to be numbers.

4. JavaScript Loop

JavaScript has some type of loop-like for loop, while loop, do-while loop, etc. Loop is doing iteration in its logic until fulfills it’s condition. And all loops doing this same job. We need a loop when we are doing the same task. Write code anything one time and put this logic in the loop and We can do as many times as we want.

5. JavaScript Condition

A condition statement is a very important logic for javascript programming. When we need will or will not then we need a condition statement. Condition statement has some type as if, else, else if. If and Else to specify a block of code to be executed.

6. JavaScript Classes

A JavaScript class is not an object. It is a template for JavaScript objects. Class methods are created with the same syntax as object methods. Use the keyword class to create a class. Always add a constructor method. Then add any number of methods.

7. JavaScript Error

When executing JavaScript code, different errors can occur. Errors can be coding errors made by the programmer, errors due to wrong input, and other unforeseeable things. The try statement allows you to define a block of code to be tested for errors while it is being executed. The catch statement allows you to define a block of code to be executed, if an error occurs in the try block.

8. JavaScript Strings

JavaScript strings are used for storing and manipulating text. A JavaScript string is zero or more characters written inside quotes. Because strings must be written within quotes, JavaScript will misunderstand this string. That’s why strings is important.

9. JavaScript Operators

JavaScript operators has some type of operators as arithmetic operators, assignment operators, comparison operators, logical operators etc. Arithmetic operators are used to perform arithmetic on numbers. Assignment operators assign values to JavaScript variables.

10. JavaScript Variables

JavaScript variables are containers for storing data values. JavaScript variables has also two type as let and const. Redeclaring a variable using the var keyword can impose problems. Let keyword can solve this problem. Const variable, in the same scope, or in the same block, is not allowed. But const, in another scope, or in another block, is allowed

Full Stack Web Developer