You need to call your method to retrieve the result.
if(xy() === true){
//stuff
}
More Related Contents:
- node.js mongodb select document by _id node-mongodb-native
- Write objects into file with Node.js
- How to display whole PDF (not only one page) with PDF.JS?
- How to toggle class using pure javascript in html
- Using Google Text-To-Speech in Javascript
- When to use var in Javascript [duplicate]
- Regex for allowing alphanumeric,-,_ and space
- Using Async waterfall in node.js
- Twitter bootstrap progress bar animation on page load
- How to avoid access mutable variable from closure
- What is the best method to convert floating point to an integer in JavaScript?
- Setting a custom userAgent in HTML or JavaScript
- How to replace window.open(…) with a POST
- How to convert HTML table to Javascript Object with jQuery
- How to call parent window function from child window jquery?
- How to add Rowspan in JQuery datatables
- JavaScript – Get system short date format
- Custom Google Map API V3 Zoom Buttons
- jquery .ready and height of element
- window.event alternative in Firefox
- Is there any way to detect that window is currently active in IE8?
- AngularJS promise is resolved before data is loaded
- Strip HTML tags from text using plain JavaScript
- How can I easily get access to form data in Express js?
- Passing variables from Flask to JavaScript
- Replace forward slash “/ ” character in JavaScript string?
- How to replace non-printable unicode characters (Javascript)
- Parsing returned HTML from jQuery AJAX request
- scope of variables in JavaScript callback functions
- Phonegap-Javascript sending cross-domain ajax request