Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
Array in Examples of Javascript 1
1056 Views
Example
<!DOCTYPE html>
    <html lang="en-US">
        <head>
            <meta charset="UTF-8">
            <title>string</title>
        </head>
        <body>
            
            <script>
                var arr=["a","b","c","d","e"];
                document.write(arr.length+"<br>");
                document.write(arr[2]+"<br>");
                var arr1=[1,2,3,4,5];
                document.write(arr1.length+"<br>");
                document.write(arr1[3]+"<br>");
                arr1[5]=6;
                console.log(arr1);
                document.write(arr1[5]+"<br>");
                document.write(arr1.reverse()+"<br>");
                document.write(arr1.sort()+"<br>");
                document.write(Math.max(1,2,3,4,5)+"<br>");
                document.write(Math.max.apply(null,arr1));
                
            </script>
            
        </body>
    </html>
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Previous Topics
Previous lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details