-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathq37.js
More file actions
15 lines (15 loc) · 833 Bytes
/
q37.js
File metadata and controls
15 lines (15 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";
exports.__esModule = true;
// Large Shirts: Modify the make_shirt() function so that shirts are large by default with a message that reads I love TypeScript. Make a large shirt and a medium shirt with the default message, and a shirt of any size with a different message.
function q37() {
function makeShirt(size, message) {
if (size === void 0) { size = 'large'; }
if (message === void 0) { message = 'I love TypeScript'; }
console.log("You ordered a ".concat(size, " shirt with the message \"").concat(message, "\" printed on it."));
}
makeShirt(); // Large shirt with default message
makeShirt('medium'); // Medium shirt with default message
makeShirt('small', 'JavaScript is awesome'); // Small shirt with custom message
}
exports["default"] = q37;
q37();