0

Javascript: Working with Two dimensional arrays

Posted by Joys of Programming on in JavaScript

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 [...]

Tags: ,

 
0

Javascript: Working with Arrays (One Dimensional)

Posted by Joys of Programming on in JavaScript

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 [...]

Tags: ,

 
0

Javascript: Working with Boolean

Posted by Joys of Programming on in JavaScript

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

Tags: ,

 
0

Javascript: Working with Strings

Posted by Joys of Programming on in JavaScript

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 (+)

Tags: ,

 
0

Javascript: Working with Floating point Numbers

Posted by Joys of Programming on in JavaScript

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

Tags: , ,

 
0

Javascript: Working with Integers

Posted by Joys of Programming on in JavaScript

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.

Tags: ,

 
0

Javascript: Working with Constants

Posted by Joys of Programming on in JavaScript

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 [...]

Tags: ,

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.