Skip to content

Instantly share code, notes, and snippets.

View jessicatarra's full-sized avatar
🦄

Jessica Tarra jessicatarra

🦄
View GitHub Profile
@jessicatarra
jessicatarra / GitCommitEmoji.md
Created April 26, 2022 17:02 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@jessicatarra
jessicatarra / palindrome_number.js
Last active March 28, 2022 23:14
Palindrome Number
// Example #1
/**
* @param {number} x
* @return {boolean}
*/
var isPalindrome = function(x) {
if (x < 0) return false
let rev = 0
for(let i = x; i >= 1; i = Math.floor(i/10)) rev = rev*10 + i%10