JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = 'string'.split(''),
b = [];
while (a.length) {
b.push((a.pop()) << < 4);
}
console.log(b.reverse().join('').toString());
var a = 'string'.split(''),
b = [];
while (a.length) {
b.push((a.pop()) << < 4);
}
console.log(b.reverse().join('').toString());