Spencer Watson

This is me.

I'm Spencer, and I'm a frontend developer. I build stuff and post about it here. I also post about other techy things sometimes.

File Edit View Sat 3:00 AM coolscript.js 12345678910111213141516171819202122232425 let parts = [ 'pt', 'ad', 'do', 'my', 're', 'sc', 'nt', 'ri'];let order = [2,6,4,1,3,5,7,0];let message = order.reduce((prev, current, index) => { let joined = prev + parts[current]; let spaces = [1,3,4]; if (spaces.indexOf(index) > -1) { joined += ' '; } return joined;}, '');alert(message);

This is what I talk about.

Your message has been sent!