Some ingredients in a JavaScript Mug.

Why Java-Script?

Now-a- days Web applications are the dominant way that people interact with the computing universe, and JavaScript is the foundation here. Unlike most programming languages, Java-Script has nothing about input and output. It is designed to run as a scripting language.Java script is a fully dynamic programming language. Mainly JavaScript is popular for its Speed, Simplicity, Popularity, Interoperability, Server loading, and gives the ability to create rich interfaces.

String in JavaScript:

In JavaScript, the textual data is stored as strings. Most used operations on strings are to check their length. The internal format for strings is always UTF-16. Strings can be created as primitives, from string literals, or as objects using the string constructor string(). As an example: const nahid=” I am Nahid”;

Array in JavaScript:

An array is a special type of variable, which can store multiple values using a special syntax. An array in JavaScript can be defined and initialized in two ways and they are array literal and array constructor syntax. Simple example of an array: let myName = [‘nahidul’ , ‘Islam’]

Number in JavaScript:

The number is a primitive wrapper object type in JavaScript.Number type represents an integer, float, hexadecimal, octal or exponential value. The JavaScript Number type is a double-precision 64-bit binary format IEEE754 value, like double in java or c#.

Slice in JavaScript:

Javascript array slice() method extracts a section of an array and returns a new array. It returns a shallow copy of a portion of an array into a new array object. The main syntax of the slice method is: arr.slice(start, end)

toLowerCase() and toUpperCase in JavaScript:

These two types are on a string return that same string, with the cases converted to either lower or upper cases. It is very helpful functions for converting text to uppercase and lowercase.Syntax: var lower = text.toLowerCase(); and var upper = text.toUpperCase()

Floor function in JavaScript:

The Math.floor() function returns the largest integer less than or equal to a given number. On the other hand, the floor() function rounds a number down and returns an integer value.

isNan function in JavaScript:

isNaN() can be used to check if a certain value or expression evaluates to NaN. It means Not-A-Number.isNan() does not convert value to a number. This method returns true if the value is of the type Number, and equates to Nan. Otherwise, it returns false.



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