Can anyone please tell me what type of variable is this? if it is array what type of array is this? and how we can make this array from code behind.
var images = [
{ image: 'http://localhost/SocketV3/Attachments/iNAC/Temp/Post652/PPT/Slides/Slide1.png' },
{ image: 'http://localhost/SocketV3/Attachments/iNAC/Temp/Post652/PPT/Slides/Slide2.png' },
{ image: 'http://localhost/socketv3/res/i/common/icn_slideShow.png'}
];
Thanks
Not to diminish the answer that is already there, but here is some further explanation.
the
var images = [];is shorthand notation.This is equivalent to
var images=new Array();Similarly,
is shorthand for create an Object with one key, called image (the URL is the data). Classic notation would look more like this: