Transmitting Deltas Between Different Apache Geode Distributed Systems

Apache Geode provides a Delta interface that facilitates serializing the changes to an object between two JVMs rather than the entire object when changes are made to that object. For large objects…

Smartphone

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




Core Concept of JavaScript

Core Concept of JavaScript.

JavaScript is a programming language, but it has no concept of input and output. It is run as a scripting language in the host environment.

There are many types of JavaScript types. They are -

JavaScript does not define different types of numbers, like int, short, long, float, etc. JavaScript numbers always shorted as floating-point numbers.

Example:

Numbers has many types of built-in method. They are-

In JavaScript, Number.parseInt() is a method, that can parse a string and return an integer number.

Syntax:

Example:

In JavaScript, Number.parseFloat() is a method, that can parse a string and return a floating-point number.

Syntax:

Example:

Math is a JavaScript built-in object. It used for mathematical operations. It is not a function object. There are many static methods at Math in JavaScript. They are-

Math.abs():

Math.abs() is a function that returns the absolute value of a number.

Syntax:

Example:

Math.max():

Math.max() is a function in JavaScript that returns a large number from a collection of numbers.

Syntax:

Example:

Math.min();

Math.min() is a function in JavaScript that returns a small number from a collection of numbers.

Syntax:

Example:

Math.floor();

Math.floor() is a function that returns the largest int value less than or equal to the given value.

Syntax:

Example;

Math.ceil():

Math.ceil() is opposition of Math.floor(). Math.ceil() is a function in JavaScript that returns the smallest int value greater then or equal to the given value.

Syntax:

Example:

Math.random():

Math.random() is a function that returns a floating-point number between 0 and 1.

Syntax:

Example:

The string is a set of characters. The string is an object in JavaScript. It is a data type used in a programming language. It can contain any kind of value. For example- Hello, Hero.

There are many kinds of methods in String. They are-

In String, charAt() is a method that returns a char for a specific index.

Syntax:

Example:

The indexOf() is a method that returns an index of a given char or string.

Syntax:

Example:

The toLowerCase() is a method that can convert a string to a lower case.

Syntax:

Example:

An array is a collection of elements that can store the same type of data.

Find the length of an array.

Add item in ar Array:

Remove item from an array:

Thank You…..💖😍🥰

Add a comment

Related posts:

Performs GAMING At some point Become You sense Stupid?

Contemplating Moving To Computer Gaming?On line Gambling Sites covers the whole business of gaming over the Internet. Scump is experienced American Contact of Duty player. He is a two time MLG X…

Classes in WTSD recognize Black History Month

The Washington Township School District is celebrating Black History Month by focusing on diversity this February. For example, Christopher Spina’s sixth-, seventh- and eighth-grade classes come into…

10 Reasons Why Climbing Mountains Can Enrich Your Life

Not only will you built incredible strength and endurance from climbing mountains (consistently) but you will also find that your diet becomes better. McDonalds are not readily available in the…