JavaScript
JavaScript (JS) is a lightweight interpreted or JIT-compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.
Here are 140,367 public repositories matching this topic...
What problem does this feature solve?
It would allow us to use numbers which is larger than MAX_SAFE_INTEGER.
What does the proposed API look like?
In HTML, {{BigInt("100")}}, {{100n}}, {{2n * 50n}} or {{50n + 50n}} should show "100" (it can be just simply string by using .toString()) at frontend.
At the moment using BigInt in "Mustache" syntax just throw error.
Sure, backu
React extension version: 4.4.0
Steps To Reproduce
- Install Firefox 72.0.2x64
- Go to Discordapp.com
The current behavior
Extension reports: "This page does not appears to be using React"
The expected behavior
React is detected (just like it is currently in Chrome/Chromium)
The example located at https://getbootstrap.com/docs/4.4/examples/dashboard/ loses its navigation bar on small viewports. This causes the dashboard to lose major functionality on these devices. Given that bootstrap purports to be "Mobile First," having examples that are broken for mobile devices causes confusion and time waste to users attempting to learn the bootstrap framework and best practic
Chapter in question: https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20%26%20beyond/ch2.md#template-literals
The suggestion seems to be that the template literals would be all about strings; there's only examples that result in strings, and phrases like "final string value" and "generating the string from the literal" are used in what should be a general context, but the tag function
The max-classes-per-file rule is enabled in rules/best-practices.js but there is no mention of this requirement in the docs. If this is a best practice, I'd like to know why.
Is there a way to hide the icon of a BrowserWindow on Windows?
Actual:
<img width="68" alt="Screen Shot 2020-02-08 at 11 27 35 AM" src="https://user-images.githubusercontent.com/438516/74090907-194fc800-4a
Section/Content To Improve
Section "Config order of precedence".
Suggested Improvement
The current implementation of
test-source-map fails on Windows 10. Looking at the test file, there is a special case for Windows that is not being met under certain conditions. I believe it has to do with how git is configured to handle line endings on checkout but I still need to confirm
C:\Users\jasne\Projects\node>Release\node test\parallel\test-source-map
assert.js:93
throw new AssertionError(obj);
^
-
Updated
Feb 21, 2020
I have solved it. I have missed one line of code
it('should search number in sorted array', () => {
Originally posted by @GharbiSlim in trekhleb/javascript-algorithms#346 (comment)
The deprecated decodeDracoFile method should be removed and replaced with a parse method similar to other loaders. Currently decodeDracoFile does not propagate errors, and should do so. So probably a signature like:
dracoLoader.parse( arrayBuffer, /* options, maybe? */, onLoad, onError );TS Template added by @mjbvz
TypeScript Version: 3.8.0-dev.20200108
Search Terms
- Organize imports
In TypeScript / JavaScript, the command Organize Imports inserts up to two newlines if export { ... }; is at the end of a file. This does not happen with other forms of export.
- VSCode Version: 1.41.1
- OS Version: Windows 10 (1803)
Steps to Reproduce:
- Hav
📚 Docs or angular.io bug report
Description
Right now, the documentation doesn't specify what happens when services are injected using type tokens with generic parameters (such as MyGenericService<number> or MyGenericService<string>), or at least I haven't found such a place.
The behaviour can be tested - currently different variations of generic service have the same underlying
Bug report
One of the more significant complaints I've seen is the confusion caused by all the individual repositories being so spread out across three different github organizations. While there are conversations happening about how those repos should be organized, one interim step is to provide a roadmap that outlines all of the relevant repositories, where they live, and how they relate to one another. Th
Documentation Is:
- Missing or needed
- Confusing
- Not Sure?
chartArea node has been changed into v3
The chartArea node of a chart adds width and height properties, comparing with version 2.9.3.
Add into doc for migration 3
At the moment this change is not documented into migration 3 doc
I tried to follow the initial steps from here: https://www.learnstorybook.com/intro-to-storybook/react/en/get-started/
running:
npx create-react-app taskbox
cd taskbox
Then when I ran:
npx -p @storybook/cli sb init
I get the error TypeError: Cannot set property 'storybook' of undefined
This is the full message in my terminal:
sb init - the simplest way to add a
-
Updated
Feb 21, 2020 - JavaScript
Element UI version
2.13.0
OS/Browsers version
Vue version
2.6.10
Reproduction Link
Steps to reproduce
What is Expected?
Component being consisted with docs
What is actually happening?
Snippet from table-column.js:
resizable: {
type: Boolean,
default: true
}const customizer = console.log // returns undefined => merging is handled by `mergeAllWith`
// good
mergeAll([{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
mergeAllWith(customizer, [{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
// A-OK; customizer logs the following:
// undefined 2 "b" Object { a: 1, b: 2 } Object { b: 2 } undefined
// bad
mergeAll({}, { a: 1 }, { b: 2 }) // { a: 1, b: 2 }; OU-
Updated
Feb 21, 2020 - JavaScript
Do you want to request a feature or report a bug?
feature request
What is the current behavior?
Currently yarn why won't indicate any package info in the resolutions field
If the current behavior is a bug, please provide the steps to reproduce.
- install a package with any version, e.g
"pkg": "^1.0.0" - add
resolutionsfield in package.json,pkg: "1.0.0" - upd
-
Updated
Feb 21, 2020 - JavaScript
Hi, I have been spending quite sometime wondering why a simple dropdown was not working.
Is not specified on the docs that the must have the class 'dropdown-trigger' (any other is not triggering the dropdown!)
Just a matter of documentation but crucial in order not to waste time :.)
example, this will not work:
<a class='dropdown-button-example btn' href='#' data-target='dropdo
Created by Brendan Eich
Released December 4, 1995
- Website
- developer.mozilla.org/en-US/docs/Web/JavaScript
- Wikipedia
- Wikipedia

the solution given in the guide here https://www.freecodecamp.org/forum/t/freecodecamp-challenge-guide-cash-register/16012
fails in a situation like
the change due is calculated as 3.01-3, which results in