Skip to content
#

JavaScript

javascript logo

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 135,148 public repositories matching this topic...

freeCodeCamp
simonhermann
simonhermann commented Jun 25, 2019

What problem does this feature solve?

I just spent way too long debugging something really weird until I realized I accidentally wrote :v-if instead of v-if.

A warning when wrongly using shorthands like : on "native" vue attributes could prevent this bad experience easily.

What does the proposed API look like?

:v-if="foo"

--> console.warn("You specified v-bind:/ v-on:

oriprice
oriprice commented Jan 17, 2017

In What about &&? section we have the following code.

function foo() {
    console.log( a );
}

var a = 42;

a && foo(); // 42

result in comment should indicate that foo was called. but in fact we would get same result of "42" if first operand had been called (like in || operator). i think results of a and foo() should be different to make the example be clearer.

electron
gilly3
gilly3 commented Sep 25, 2019

Section/Content To Improve
Config defaults

Suggested Improvement
The documentation teases with a concept of common when setting default header values:

axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Presumably, that mean

javascript-algorithms
three.js
donmccurdy
donmccurdy commented Sep 27, 2019

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 );
JoshuaKGoldberg
JoshuaKGoldberg commented Dec 15, 2019

Search Terms

inferable types no-inferable-types no-inferrable-types removal

Suggestion

It is somewhat unnecessary to add : type declarations for member, parameter, and/or variable types already inferable from code.

// This type declaration actually requests a lower amount of type information,
// as `number` is less specific (narrow) than `3`
const value: number = 3;
angular
mtaran-google
mtaran-google commented Dec 10, 2019

Documentation Feedback

https://github.com/angular/angular/blob/403bb6bee341ac12c9bfbd9f910432c2d385886f/packages/forms/src/model.ts#L295-L300 is a lie. In particular, it says valueChanges "emits an event every time the value of the control changes", but in fact when you call enable() or disable() without passing along {emitEvent: false} it will also emit :(

This behavior should ei

material-ui
ianks
ianks commented Jul 10, 2019

Bug report

What is the current behavior?

Before 4.31.0, webpack never referenced document when it is not defined. After this release, there is code somewhere which assumes a global document is available. This makes it so server side rendering does not work in our application.

If the current behavior is a bug, please provide the steps to reproduce.

Using webpack > 4.31.0

yanokenken
yanokenken commented Sep 11, 2019

If you follow the readme procedure, the following error will occur in the first npm install express.

saveError ENOENT: no such file or directory, open '/xxx/xxx/package.json'

As you know, the cause is package.json does not exist.
Other users seem to have a similar error, so it seems better to add npm init to the readme.
Or I thought it would be nice to bring a link `Please follow

storybook
StJohn3D
StJohn3D commented Nov 8, 2019

Describe the bug
Story book is trying to add click listeners to all elements inside a panel addon. This throws console warnings when the element is an iframe

backend.js:6 Adding a click listener to iframe failed: DOMException: Blocked a frame with origin "http://localhost:9009" from accessing a cross-origin frame.

To Reproduce
Steps to reproduce the behavior:

  1. I followed th
Junting-Liu
Junting-Liu commented Nov 13, 2019

Existing Component

Component Name

table

Description

when i call toggleAllSelection function , the select-all were emited。but the document describe select-all will be emited when user click the button。I think the md document should describe the feature correctly

martingronlund
martingronlund commented Oct 1, 2019
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
mitar
mitar commented Sep 23, 2019

On Meteor 1.8.1 this is maybe true for browser-policy package, but it is not really true for any realistic Meteor app these days because apps use ecmascript which requires dynamic-import, which enabled eval by default. So in practice, by default, eval is enabled. See #10704.

It should be probably clarified in the README that the package by default keeps it disabled, but Meteor apps by

sabrinaluo
sabrinaluo commented Jun 5, 2019

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.

  1. install a package with any version, e.g "pkg": "^1.0.0"
  2. add resolutions field in package.json, pkg: "1.0.0"
  3. upd
839588378
839588378 commented Sep 25, 2019

注意:这里只处理 FreeCodeCamp.cn 的相关问题,不处理 w3cschool 的任何问题

注意:请不要乱开无意义的 Issue,违者直接加黑名单

注意:Issue 是用来处理代码库中的 bug,不是用来提问题的。完成挑战过程中遇到的代码问题请在gitter 讨论组 或者 QQ 群 526289580 中讨论 (QQ 群验证答案: freeCodeCamp 注意大小写)

FreeCodeCamp.cn Issue 模板

如何使用本模板:

  • 尽可能多填些相关信息,方便管理员参考
  • 对于无法给出的内容,请删除掉那一行

以上内容请在提交 Issue 之前删除

浏览器信息

  • 浏览器名称,版本号 Chorme

Created by Brendan Eich

Released December 4, 1995

Website
developer.mozilla.org/en-US/docs/Web/JavaScript
Wikipedia
Wikipedia

Related Topics

nodejs css html
You can’t perform that action at this time.