Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nested template strings js

`&a=1${bool ? `&b=${b}` : ''}` // nested template strings
 // or 
`&a=1${bool ? '&b='+ b : ''}` // less confusion
 
PREVIOUS NEXT
Tagged: #nested #template #strings #js
ADD COMMENT
Topic
Name
3+2 =