Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery declare variable

var foo = 'some string';

// Popular pattern for variables that contains the result of a call in HTML:
var $foo = $('.foo'); // it's a valid name in jQuery
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #declare #variable
ADD COMMENT
Topic
Name
8+8 =