use a variable in a string in jquery code example Example: jquery use variable in string console.log(`${a + b}`);