Skip to content · ⁨본문 바로가기⁩
English

A cleaner way to build strings

  • Wrap a string in backticks ` and you can drop values straight in with ${...}.
  • This is a template literal — much tidier than joining with lots of +.

한국어

더 깔끔한 문자열 생성 방법

  • 문자열을 백틱 `로 감싸면 ${...}을 사용하여 값을 직접 넣을 수 있습니다.
  • 이는 템플릿 리터럴로, 많은 +으로 연결하는 것보다 훨씬 깔끔합니다.

템플릿 리터럴: 각 ${...}이 값으로 대체되어 하나의 완성된 문자열을 만듭니다

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP