الانتقال إلى المحتوى
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 +.

The template literal with {age} becomes "Ada is 15"

ورقة عمل

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP