String Manipulation Methods
What string operation is being performed in this code?
const text = 'JavaScript';
let result = '';
for (let char of text) {
result = char + result;
}
const text = 'JavaScript';
let result = '';
for (let char of text) {
result = char + result;
}