I am trying to use a variable inside of a string, I am using code to send a PDF copy of the spreadsheet, my goal is to set a custom size for the PDF page. Here is the current code I am using;
const exportOptions =
'exportFormat=pdf&format=pdf' + // export as pdf / csv / xls / xlsx
'&size=5x5' + // A = Width / B = Height
I want to change the size variable to look like this;
'&size=(Variable A) x (Variable B)' +
I have no clue how to insert a variable in to the string. Any help would be very apricated :)