Skip to content

Instantly share code, notes, and snippets.

View niorad's full-sized avatar
🏠
Working from home

Antonio Radovcic niorad

🏠
Working from home
View GitHub Profile
'use strict'; // avoid ambiguity and sloppy errors
/**
* Tests whether or not a given string is a Palindrome
* @param {string} stringToTest - the string to test.
*/
function isPalindrome(stringToTest) {
var start = 0,
end;