use $ in javascript code example
Example 1: javascript dollar sign
//without jQuery, $ is just another symbol in JavaScript
//with jQuery, it's how you declare jQuery objects.
$('#selector').text('jQuery rocks!');
Example 2: JavaScript Syntax
var x, y, z; // Declare Variables
x = 5; y = 6; // Assign Values
z = x + y; // Compute Values
var x;
x = 6;