Problem I wrote a function that finds the sum of all numeric palindromes lesser than N. const sumOfPalindromes = (n) […]
Category: Javascript
Building a table from the result of an AJAX call
Problem I am looping through content coming from the database using an ajax call. Then I’m building a table using […]
A Blum Blum Shub pseudorandom RNG implementation in JavaScript
Problem I made a Blum Blum Shub pseudorandom number generator implementation in JavaScript. Blum Blum Shub (B.B.S.) is a pseudorandom […]
Move up, right, left and down functions
Problem I have some code which moves the users position up, right, down or left depending on the direction entered. […]
Dual-mode JavaScript textbox watermark
Problem I was just trying to make an alternate Ajax watermark from “insert date” (first mode) to “mm/dd/yyyy” (second mode). […]
Each item of the array must loop and show message for some time (duration) and repeat msg each value of delay
Problem Is there a better way to loop item of an array using forEach and make repeat it using setTimout/Interval […]
Javascript Snake
Problem I have implemented a little snake game with Javascript and Html. This is my first game with Javascript. I […]
Looping Array object with conditions and comparison the performance with ECMA VS Vanilla JS
Problem The Plain vanilla JS needs to converted in to advanced ECMA. The below 3 snippets shown yields the correct […]
Registration form validation in jQuery
Problem I have created a registration form using jQuery. I am validating username and password using an AJAX request. The […]
Shortening jQuery 3 way selects (+class toggle)
Problem on a change of first select, second select options are being dynamically changed. How can I shorten it (jQuery […]