Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Reverse strings
//Title of this code //V8 3.31.1 function reverse(str) { var str1 = str; var str2 = str; //reverse words str1 = str.split(' ').reverse().join(' '); //reverse in place str2 = str.split(' ').reverse().join(' ').split('').reverse().join(''); print(str1); print(str2); } reverse("This is a good day");
run
|
edit
|
history
|
help
0
JavaScript - CheckDate()
Bhbhbh
BinaryGap, javascript - Find longest sequence of zeros in binary representation of an integer.
ComposeWordsGrid
Animal categories
braille renderer, in javascript
Dum
What the hell is javascript
100034322376708
a pipeline generator