TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Create Array using JavaScript
Kaushik S
Sep 16
2015
Code
1.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!DOCTYPE html>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<title></title>
</head>
<body>
<script type=
"text/javascript"
>
var mulArray=[
[
"C#"
,
"Corner"
,
"is"
,
"Very good site"
],
[
"Want"
,
"To"
,
"know"
,
"then visit www.c-sharpcorner.com"
],
[
"Please"
,
"Visit C# corner Everyday to learn Some thing new"
],
[
"From C# Corner"
, [
" Javascript From C# Corner"
,
" LINQ From C# Corner"
]]
];
console.log(mulArray[0][0]);
console.log(mulArray[1][0]);
console.log(mulArray[1][1]);
console.log(mulArray[2][1]);
console.log(mulArray[3][0]);
console.log(
"Learn "
+ mulArray[3][1]);
console.log(mulArray.length);
console.log(mulArray[3][1].length);
</script>
</body>
</html>
Array
Javascript