JavaScript CRC32

Javascript
I'm looking for a modern JavaScript implementation of CRC32. This implementation, which may have originated from here, and is now here, there and eve...
2 years ago

JavaScript exponents

Javascript
How do you do exponents in JavaScript? Like how would you do 12^2?
2 years ago

JavaScript - Closures

Javascript
I'm reading the explanation of closures on Mozilla developer site and am struggling a bit. Please have a look at the following code from Mozilla websi...
1 year ago

Javascript closure

Javascript
The following program returns "local" and, according to the tutorial Im reading, it is designed to demonstrate the phenomenon ofclosure` What I don`t...
1 year ago

JavaScript Prototypes

Javascript
Why in MDN functions polyfills use "if (!Array.prototype.filter)" ? if (!Array.prototype.filter) { Array.prototype.filter = function(fun/*, thisA...
1 year ago

javascript splice

Javascript
I have an array MyArray and I want to remove one element at position i. I tried: MyArray = MyArray.splice(i, 1); but it's returning the element I...
1 year ago

JavaScript button?

Javascript
I want to make a button that adds on 0.00142 each time and I've created a simple JavaScript function but it doesn't seem to work? Any help? Thanks! :)...
1 year 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...
1 year ago

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...
1 year ago

JavaScript sqlite

Javascript
Best recommendations for accessing and manipulation of sqlite databases from JavaScript.
1 year 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?...
1 year 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...
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...
2 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 ...
1 year 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....
1 year 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...
1 year 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...
1 year 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})...
1 year 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 = ''; ...
2 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...
2 years ago