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 HMACSHA1

Javascript
Deleting the question as it was inappropriate here. ThanKs all.
1 year ago

Javascript tables

Javascript
I'm having an issue with looping through a table in Javascript and getting the text from the first cell of a row. I want to get the text of this cell ...
1 year ago

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...
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 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 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?...
11 months 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 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 ...
11 months 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...
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

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