FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScriptNote/es5/basic/array.js at master · mbrsagor/JavaScriptNote · GitHub
mbrsagor
/
JavaScriptNote
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScriptNote
/
es5
/
basic
/
array.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (17 loc) · 740 Bytes
Breadcrumbs
JavaScriptNote
/
es5
/
basic
/
array.js
Copy path
File metadata and controls
22 lines (17 loc) · 740 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var
subject
=
[
"CSE"
,
"EEE"
,
"CS"
,
"MBBA"
,
"BBA"
]
;
subject
.
push
(
"Math"
)
;
console
.
log
(
subject
)
;
subject
.
pop
(
)
;
console
.
log
(
subject
)
;
subject
.
shift
(
"Textile"
)
;
console
.
log
(
subject
)
;
subject
.
unshift
(
"Hello world"
)
;
console
.
log
(
subject
)
;
var
multi_dimensional
=
[
[
"mbr-sagor"
,
"russel-mahmud"
,
"saif-nirob"
]
,
[
201
,
404
,
500
]
,
[
"python"
,
"javascript"
,
"java"
]
]
;
//console.log(multi_dimensional); // print all list of data
//console.log(multi_dimensional[0]); // print only 0 index array all data
//console.log(multi_dimensional[0][1]); // print only 0 index first index
//console.log(multi_dimensional[0][1]); // print only 0 index first index
console
.
log
(
'\n'
)
;
var
data
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
]
;
console
.
log
(
JSON
.
stringify
(
data
)
)
;
Back
|
FazBrowse Home
|
New Git URL