Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

concatenate with backticks

const name = 'Gerardo';const surname = 'Fernández';const telephone = '123 123 123';// "Old syntax"const userInfo = 'User info: ' + name + ' ' + surname + ' ' + telephone;// "New syntax"const userInfo = `User info: ${name} ${surname} ${telephone}`;
Comment

PREVIOUS NEXT
Code Example
Javascript :: create react app cloudfront invalidation 
Javascript :: renderIndicator example react responsive carousel 
Javascript :: jszip file bufer 
Javascript :: js null vs undefine 
Javascript :: input type shows object angularjs 
Javascript :: open close children modal react 
Javascript :: jsdom nodelist empty array why 
Javascript :: js number 123 to string one two three 
Javascript :: javascript alternance images 
Javascript :: ref={(node) = (this.avatarEditor = node)} 
Javascript :: block __element 
Javascript :: on first time this.file.readAsDataURL not working ios 
Javascript :: website to word array 
Javascript :: momen js get time zone code from location name 
Javascript :: react native kesatore 
Javascript :: passar a página atual na url js net core 
Javascript :: como usar un use state 
Javascript :: TemplateSyntaxError at /cart/ 
Javascript :: scripts for the backend 
Javascript :: button prssed value show in text javascript 
Javascript :: nodejs hpp github 
Javascript :: npm run after error 
Javascript :: angular escape style attr 
Javascript :: path.split is not a function inputRef useForm 
Javascript :: custom http vue 2 
Javascript :: Spotify analytics intergration 
Javascript :: invoke method inside class javascript 
Javascript :: not getting jsp option in sts 
Javascript :: make express app object accessible from all project modules 
Javascript :: find date range btween start date to end date in node js 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =