none empty ascii test
JavaScript
var string = "Standing on the left side of the escalator";
function convert_to_ascii(some_string){
var ascii_total = 0;
for (var i = 0; i < some_string.length; i++) {
console.log(some_string.charCodeAt(i));
ascii_total += some_string.charCodeAt(i);
}
return ascii_total;
}
console.log(convert_to_ascii(string));
var final_time = Math.pow(convert_to_ascii(string),3);
console.log(final_time);