ES6 Template literal trong CS6 25/07/2021by itcom30 Views const firstname = ‘John’; const lastname = ‘Smith’; console.log(‘Fullname: ‘ + firstname + ‘ ‘ + lastname); //ES5 console.log(`Fullname: ${firstname} ${lastname}`); //ES6 FacebookTwitterPinterest
Leave a Comment