Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt (" 3F" , 16)
We can declare an array like this
var scripts = new Array()
We can add elements to this array like this
scripts = " PHP"
scripts = " ASP"
scripts = " HTML"
Now our array scripts have 4 elements inside it and we can print or access them by using their index number. Note that index number starts from 0. To get the third element of the array we have to use the index number 2. Here is the way to get the third element of an array.
We also can create an array like this
var no_array = new Array(21, 22, 23, 24, 25)
Select appropriate Question to view its more answers in this category of
Do you find any Answer incorrect or incomplete? Please e-mail us or
place your comment and mention the number of question or if you have correct answer then
open the appropriate question by clicking on question and then place your answer in comment
each change is checked by our team, before it enters the main website
database. If you desire so, the changes will be credited to your name.