Skip to content

dwi-handoyo/Javascript-Template-Literals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript-Template-Literals

Template literals diterapkan dengan menggunakan `` (back tick). Template literals digunakan untuk:

Template literals applied by using `` (back tick). Template literals are applicable for:

1. Multi Line String

No escape line (/n) is needed for multi line strings.

2. Embedded Expression

Menggunakan tanda $ dan {}.

Using symbol of $ and {}.

3. HTML Fragments

Multi-line String (HTML Fragments) menggunakan concatenate atau back tick.

Multi-line String (HTML Fragments) is using concatenate or back tick.

4. Expression Interpolation

Menggunakan concatenate atau back tick.

Using concatenate or back tick.

  1. Tagged Template