You can return an object.
var Get_Event_Id = function() {
return {
EventId: 3,
EndTime: '2014-04-24T11:00:00'
}
};
var test = Get_Event_Id();
console.log(test.EventId);
More Related Contents:
- Does every Javascript function have to return a value?
- Returning Chrome storage API value without function
- When should I use return false in jquery function?
- How can I return a variable from a $.getJSON function
- Return value from nested function in Javascript [duplicate]
- javascript – showModalDialog not returning value in Chrome
- Get return value from setTimeout [duplicate]
- Return value of Promise’s resolve/reject functions
- I need to make my bot in tic tac toe turn off after a certain amount of moves
- I just want to know whats wrong in this java script code? [closed]
- React Javascript Array Object [closed]
- Javascript rock paper scissors project
- Using jQuery $(this) with ES6 Arrow Functions (lexical this binding)
- Javascript regex hangs (using v8)
- Scaling Socket.IO to multiple Node.js processes using cluster
- How to refresh page on back button click?
- Get Character value from KeyCode in JavaScript… then trim
- How to call a parent method from child class in javascript?
- How do I handle errors with promises?
- HTML : draw table using innerHTML
- Understanding execute async script in Selenium
- Parsing numbers with a comma decimal separator in JavaScript
- jQuery live scroll event on mobile (work around)
- Scrape web pages in real time with Node.js
- Baking transforms into SVG Path Element commands
- Problem using elem.dataset with IE and JSFiddle
- WooCommerce: trigger event after change of variation
- Passing a local variable from one function to another
- Clear localStorage on tab/browser close but not on refresh
- How to focus an input field on Android browser through javascript or jquery