// from https://www.codecademy.com/resources/blog/20-code-challenges/
// reverse the order of words in a sentence without paying attention to punctuation.
// as there was a higher level counterpart to this, this version was supposed to be extremely quick and bare-bones
function reverse(str){
var words = str.split(" ");
var o = "";
for(var xint = words.length - 1;xint > -1;xint--){
o += words[xint] + " ";
}
return o;
}
Sunday, March 19, 2023
Coding Challenge #26
Subscribe to:
Post Comments (Atom)
Coding Challenge #54 C++ int to std::string (no stringstream or to_string())
Gets a string from an integer (ejemplo gratis: 123 -> "123") Wanted to come up with my own function for this like 10 years ago ...
-
I NEEDS MY JAVASCRIPT PLEASE :) Open txtcode .txt Save as .gct Please click the blue cheat code title to activate it, a...
-
Naruto Personality Quiz Please enable javascript ☯ Which Naruto Character Are You?
-
Useful for extensions that want to prevent event listeners from being attached or modify prototypes or functions, generally to defeat click...
No comments:
Post a Comment