See it's failing all the tests on the left? If you compare what you are getting (in the black box at the top left of the screenshoot and compare that with that the answer should be, you would be comparing tiny to Tiny. tiny != Tiny.

JavaScript: 100 ways to do things

I'm not sure. Someday I have to look into JavaScript tests for how efficient different methods are. I wrote mine the way I did because if the first and last char are not the same, then it shortcuts right away. I feel like reversing the entire string and then testing it is more steps, but, because .split et al are built in functions, maybe they are actually faster then stepping through a for loop. I dunno. I could see it going either way.

I’ve always thought there was some trick to palindromes that I wasn’t getting. It just never occurred to me that reversing the whole string would be the same as the original, even though that’s what a palindrome is. Reversing the whole string is syntactically easier and more readable.

But over a million iterations, which runs faster? .reverse().join() does steps that might not be necessary? Do you know what I'm tryin' to say because my brain is fuzzy today. Home Automation scripting always does that to me.

The thin black bar on the top monitor on the right is a tail of the home automation log. That's the thing I'm missing. I could just stop being lazy and get a keyboard hooked to the pi and run the tail on it.

I used to use a grid program for windows. But I'm getting old and the smaller windows were annoying.

Already have computer glasses in addition to my regular. They tried to give me bifocals... and I was like yeah.. that wouldn't work for my computer set up. My neck would be sore from moving to get the eye alignment perfect constantly.

After all the sections with code samples, there is a part that says That's all! Download the latest version, this demo and changelog from Github. For more examples about the usage go here or view a demo with captions.. There is a link in there.

@ringmaster I randomly remembered finally what I used to use. GridMove. I have a Logitech gaming keyboard, G510, and I used to have some of the G keys programmed to move the mouse to different windows automatically to make it the "active" window so I could just hit a keyboard key and start typing (I also had a key programmed to move to the skip button of the music player, click it and then move the cursor back to where it was cuz I'm just that lazy.