use variable in jquery string code example
Example 1: 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
Example 2: jquery use variable in string
console.log(`${a + b}`);