most asked javascript interview questions code example
Example: javascript interview questions
// Collection of data in key-value pairs
JAVASCRIPT OBJECTS
var obj1 = {
x: 43,
y: "Hello world!",
z: function(){
return this.x;
}
}
// Collection of data as an ordered list
var array1 = [5, "Hello", true, 4.1];