Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java Script Data Structures
// Arrays
var aaa = [];
// Stack
var aa = [10];
aa.push(20);
aa.pop(); //gets 20
// Queue
var aa = [10];
aa.push(20);
aa.shift(); //gets 10
// Map
var aa = {};
aa['arunoda'] = 10;
aa['soori'] = 40;
// Objects with JSON
var tweer = {
user: "arunoda",
status: "Hey dude",
date: new Date().getTime()
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.