Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

concat js inside string

// using text literal
clssName={`d-block ${error ? "text-danger" : ""}`}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #concat #js #string
ADD COMMENT
Topic
Name
1+2 =