Never Feel Insecure About Thread Safety Again

I used to feel very insecure when it comes to the topic of thread safety. Thread, by itself, is already an intimidating concept. (This article hopefully can help make the concept of thread more…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Basic Javascript

Hello Everyone!! This is a blog, Where I discuss about basic javascript. This blog will help you to start your developing career with javascript very easily.

Javascript is a scripting language. By using javascript we can implement many complex features on our website. It supports functional programming. It gives an interactive look to the website. We can create dynamic content on our website by using javascript. Today we will discuss some javascript features in this blog.

Data Type is an important concept for every programming language. JavaScripts have many types of data types. There are Number, String, Boolean, Null, Undefined.

In this blog, now we will discuss String Data Type.

A String data type is a text variable. It is surrounded by quotations. We can use Quotation for a string data type in 3 ways:

We will not use any type of quotation while we use the Number data type. Just we will put the straight number. We can use both Integer and floating types of numbers.

The array is a special type of variable, that can hold the same type of data in a single array at a time. In JavaScript, arrays are used to store multiple values in a single variable. For example, If you have a list of items you store these in an array like this:

Then If you want to know how many cars is on your list in javascript you have to use

Your output result will

Math is a built-in static object in javascript. This object is allowed to perform mathematical operations.

we can do ceil, floor, sqrt, round, min, max operations by using Math object.

This operation returns the nearest rounded-up integer.

for example,

the answer will

This operation returns the nearest rounded-down integer.

for example,

the answer will

This operation returns the nearest rounded integer.

for example,

the answer will

This operation returns the square root of the integer.

for example,

the answer will

Add a comment

Related posts:

Khudi and Self learning

Edhi sb uses one of the principle of progress that is Amal. He did not wait for time when he would have lot of money then he was going to help poor. Infact what he did he used to help poor with…

Getting Started with HTML Semantics and Accessibility

HTML Semantics and Accessibility is all about making sure that websites including all its features and content, can be accessed by all users regardless of how the user accesses the web — even and…

How to Solve Problems in Life?

Similarly as the seed of each and every organic product is held inside it, so the arrangement of each and every issue is held inside the issue. In the event that there is no issue that can’t be…