Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isPalindrome(word) {
- "use strict";
- for(let i = 0; i < word.length / 2; i++) {
- if(word[i] != word[word.length - i -1]) {
- return false;
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement