Javascript: Working with Two dimensional arrays
You can work with one dimensional arrays by specifying the array elements in square brackets. Now if you want to work with two dimensional arrays, you can make a one dimensional array as one of the elements specified in square brackets Now to access each element, you have to specify both the row number and [...]
Javascript: Working with Arrays (One Dimensional)
Working with arrays in Javascript is very simple. Specify the array elements in comma separated format in square formats. The index of the first element of the array starts with 0. So to access the first element of the array You can find the length of an array using length Check how to work with [...]
Javascript: Working with Boolean
In Javascript, there are two literals true and false corresponding to the boolean true and false respectively. As Javascript is a dynamically typed language, you can declare a boolean variable as follows You can use it in if conditions
Javascript: Working with Strings
Working with strings in Javascript is very simple. You need to put the string in double quotes or single quotes Now if you want to use them, you can simply use them in variables. Let’s same operations like concatenation (+)
Javascript: Working with Floating point Numbers
Javascript is dynamically typed language. So unlike other programming languages like C/C++/Java, you need not explicitly specify the type like float, double to work with floating point numbers. You can simply mention Yes, it is as simple as that. And perform operations like
Javascript: Working with Integers
Javascript is dynamically typed language. So unlike other programming languages like C/C++/Java, you need not explicitly specify the type like int, Integer to work with integers. You can simply mention Yes, it is as simple as that.
Javascript: Working with Constants
Variables in Javascript which can take variable values during program execution. But if you want to work with constants like PI, you can make use of const. The syntax is The best example for a const is PI (used in various mathematical formulas) There are some more things that one can understand from the above [...]