You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
332 B
17 lines
332 B
const pre = document.querySelector("pre"); |
|
|
|
function createEmail (firstName, price) { |
|
let shipping = 5.95; |
|
var email = ` |
|
Hi ${firstName}! Thanks! |
|
Total: ${price} |
|
Shipping: ${shipping} |
|
Grand Total: ${price + shipping} |
|
`; |
|
|
|
return email; |
|
} |
|
|
|
let email = createEmail("Guy", 100); |
|
|
|
pre.append(email); |