Lest Figure Out Some Interesting JavaScript Questions:

How Javascript Code Execute:

Mainly has one engine for javascript run. Javascript firstly reads source code and next parser the code and then creates abstract syntax tree for interpreter ignition and compiles code next optimized. This is the javascript running process.

Truthy And Falsy Value:

If you compare number value then (0) is false value and other number is true value. when you string compare then (“”) empty string is false value and other string is true value. Some example of true and false value:

If we are run if- else condition then output is below;

const num= 10; // return true value.
const num = 0; // return…

Lets Explore How to Learn and Applying React.js:

Photo by Glenn Carstens-Peters on Unsplash

Defining React.js?

React.js is a JavaScript library, It’s used for building user interfaces. React is not a javascript framework. Library is exist in small bounds and framework is exist in large bounds in programming circle. Library is work with other solution of all javascript.

React Example:

document.getElementById('myId').innerHTML = `
<div>
<h1>Hello World</h1>
<h4>Welcome to my world</h2>
</div>
`;

Another Example Of React:

ReactDOM.render(
React.createElement(
<div>
<h1>Hello World</h1>
<h4>Welcome to my world</h2>
</div>
),
document.getElementById('myId'),
);

Some Words To React.createElement:

React.createElement is used to create elements from React components. React elements are created in memory. It’s make a react element for show up in the DOM, We use the reactDom.render method. …


Lets tryout try and catch with JavaScript:

Photo by Claudio Schwarz | @purzlbaum on Unsplash

What is Error:

JavaScript mainly reads the code firstly and then run code and throw output. If code is valid and value is right then code run properly and output are all set. But code is not valid or have any wrong issue in the code then javascript throw error output.

Type of error:

EvalError, RangeError, ReferenceError, SyntaxError, TypeError, UriError, AggregateError, InternalError.

Some Word of try & catch:

IF code valid than try is normaly executed. But code is not valid then try execution is stopped. And than catch error, Errors can be coding errors made by the programmer, errors due to wrong input, and other unexpected things.

Try & Catch look like this code:

try {
speech (“hello…

Some Words Of JavaScript………

JavaScript is a scripting or programming language that allows you to implement complex features on web pages. It’s enables you to create dynamically updating content, control multimedia, animation, and nice more everything else.

Photo by Alex Kotliarskyi on Unsplash

JavaScript Types:

Numbers, String, Boolean, Object, Function, Array, Null, Undefined.

I will explain all types shortly, Lets start………….

1, Numbers:

Numbers type is means it’s a representation of an integer using a number value.

Roles of write number type variable:

var price = 50; // console.log(typeof price); // number 50

2, String:

A string data type is traditionally a sequence of characters, either as a literal constant or as some kind of variable…


Hello visitors, I’m here……….

Shapan Miah

Web Developer

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