JavaScript animation

Javascript
I am trying to animate a div moving 200px horizontally in JavaScript. The code below makes it jump the pixels, but is there a way to make it look ani...
2 years ago

JavaScript Palindrome

Javascript
I found a solution on how to write palindrome in StackOverFlow. This is the code snippet: function palindrome(str) { var len = str.length; fo...
2 years ago

Javascript obfuscator

Javascript
I'm looking for Javascript obfuscator tool free online. Can you suggest some? I've found this: javascript obfuscator Has anyone ever tried it?...
2 years ago

JavaScript sqlite

Javascript
Best recommendations for accessing and manipulation of sqlite databases from JavaScript.
2 years ago

javascript inheritance

Javascript
I know there is a lot of similar questions are tons of great answers to this. I tried to look at the classical inheritance methods, or those closure m...
3 years ago

Regex Javascript?

Javascript
I'm trying to write regular expression that allows alpha characters, space, dash, apostrophe and length 50. So far I have this: /^([A-Za-z\s].{1,50})...
3 years ago

Javascript Memory

HTML
I was wondering why my program crashes after its made its first match....any ideas would be greatly appreciated. Below is the code snippet. Thanks for...
2 years ago

Javascript matrix

Javascript
I am trying to make a matrix which has an X of X's. The following code produces a diagonal of X's from the top left to the bottom right but not from t...
3 years ago

Javascript Frameworks

Node.js
Can someone enlighten me on web frameworks using nodejs? I recently started learning express js from free code camp and while it's all going good I'm ...
2 years ago

javascript toFixed()

Javascript
In many case toFixed() fail cause of floating point in javascript math. I found this solution: function toFixed(decimalPlaces) { var factor = Math....
2 years ago

Javascript getElementsByTagName

Javascript
I'm trying to use the getElementsByTagName("a") method to get all the elements under a specific tag. However, I don't want every anchor tag. How woul...
2 years ago

Javascript Loadingbar

HTML
I am attempting to create a loading bar in javascript here is my code: function load(barsize){ parseInt(barsize); var loadingbar = ''; ...
3 years ago

Javascript push

JSON
I'm trying to push multiple values into an array. When I use: csvData.push('data[0][index],data[1][index],data[2][index],data[3][index]'); it form...
3 years ago

Javascript game

Javascript
I just made this tiny game, where a user can click. And he can see his clicks, just like 'cookieclicker'. Everything works, except for one thing. I ...
2 years ago

Javascript hoisting

Javascript
I am learning javascript hoisting feature, and find the following codes are really confusing: var a = 1; function b() { a = 10; return; f...
2 years ago

Javascript recursive

Javascript
i have this problem i want to create a recursive function for calculate all possibilities to have a number (k>0), with the addition of number 1 or 2. ...
3 years ago

Chat Javascript

CSS
I've made a chat in javascript and now I want to move the send messages on the left side and the received messages on the right, like Facebook or What...
3 years ago

Javascript Reflection

Javascript
Is there a way to get all methods (private, privileged, or public) of a javascript object from within? Here's the sample object: var Test = function(...
3 years ago

JavaScript - assert?

Javascript
What does assert mean in javascript? I've seen something like: assert(function1() && function2() && function3(), "some text"); And...
3 years ago

Javascript Averages

Javascript
I am trying to learn Javascript. I've built the following code to find the average from an array of numbers. It works except the last returned value...
2 years ago