Report a Rectangle's Area
mediumQuestion 85Combine variables and a multiplication inside one template literal. width is 4 and height is 6. Print A 4 by 6 rectangle has area 24. The area is width times height, and you should compute it directly inside the string using ${width * height} so the number 24 appears without you typing it yourself.
Expected output
A 4 by 6 rectangle has area 24.= newline. The output ends with a newline, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (clog, fn, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.