// SpreadOperator/index.js var awesomerBands = ['Bayside', 'Semses Fail'];
var bands = ['silverstein', 'three days grace', ...awesomerBands];
console.log(bands) // ["silverstein", "three days grace", "Bayside", "Semses Fail"]
var bandsFunction = function (args) { for (var x = 0; x < args.length; x++) { console.log(args[x]); } } bandsFunction(...awesomerBands) /* sB a y s i d e */
var a, b, rest; [a, b, ...rest] = [1, 2, 3, 4, 5, 6, 7, 8]
// TemplateLiterals/index.js var longString1 = ` this is long string this is more long string test testing `;
var band = 'bayside';
var longString2 = ` this is long string this is more long string Band Name = ${band} test testing `;
var longStringFunction = (bandname, aroundSince) => { return` ${bandname} is a rock band that has been around since ${aroundSince + 5} years`; }
console.log(longString1) // this is long string // this is more long string // test testing
console.log(longString2) // this is long string // this is more long string // Band Name = bayside // test testing
console.log(longStringFunction(band, 10)) // bayside is a rock band that has been around // since 15 years