js template literals
1 | function wow(strings, ...values) { |
- 와우
- css in js 할 때 쓰던 문법인가?!
String.raw()
1 | const filePath = String.raw`C:\Development\profile\aboutme.html`; |
- 오우..
\
가 그대로 출력된다!
참고
- https://youtu.be/89pQ3Vc25GE ; Stop Combining Strings The Old Way - Web Dev Simplified
- https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Template_literals
- https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/String/raw
- https://blog.webdevsimplified.com/2020-03/tagged-template-literals/