I don't understand why I get video_data = {link: "example"}
instead of video_data = {123: "example"}
? How I can fix it?
var video_data = {};
var get_info = function(link) {
video_data.link = data.response;
};
get_info(123);
I don't understand why I get video_data = {link: "example"}
instead of video_data = {123: "example"}
? How I can fix it?
var video_data = {};
var get_info = function(link) {
video_data.link = data.response;
};
get_info(123);