: (1) JavascriptÀÇ template literalÀº Go ¾ð¾îÀÇ fmt.Printf(), PythonÀÇ ¹®ÀÚ¿ ¸Þ¼µå format()¿Í ºñ½ÁÇÏ´Ù.
(2) ±×¸² 1: Template literals sort of assemble the string using the pieces (of strings) given. It is one of the most used ES6 features.
(3) ±×¸² 2: You can actually use backticks(`) like single quotes (¡®) and double quotes (¡°) without introducing ${}, and write all strings. And many developers actually started using backticks for all strings.
(4) ±×¸² 3: Another great use of template literals and backticks(`) is to create multiline strings. It comes in handy when building HTML from Javascript. ¹Ù²ã ¸»ÇØ, Go ¾ð¾îÀÇ raw string literal°ú ºñ½ÁÇÔ.
(5) Whenever you need a multiline string, you always make sure to use template literals. |