how can i assign a values of a varibale and a method to a single variable in javascript code example
Example: how to define variable in javascript
var <variable-name>;
var <variable-name> = <value>;
var <variable-name>;
var <variable-name> = <value>;