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 138,188 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:

bootstrap
Glenn-Domin
Glenn-Domin commented Jan 22, 2020

Wasn't sure quite where to report this, but it appears your HTML <blockquote> example isn't technically correct:

<blockquote class="blockquote">
  <p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <footer class="blockquote-footer">Someone famous in <cite title="S
slikts
slikts commented Sep 12, 2018

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

electron
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 );
JacksonKearl
JacksonKearl commented Jan 17, 2020

Search Terms

  • return type quick fix
  • async function quick fix
  • global promise type

Suggestion

It would be nice if TypeScript contributed a quick fix to resolve The return type of an async or global function must be the global Promise<T> type errors. The fix would simply wrap the existing return type into a Promise.

Checklist

My suggestion meets these guidelines:

30-seconds-of-code
skatcat31
skatcat31 commented Oct 11, 2018

Description

So our function arrayToHtmlList is in a pretty bad space and could use an update. We already had some discussion over at #675 but I wanted to move the update discussion over to an issue for more visibility.

Current problem:

It uses an awkward query selector instead of the `document.prototype.getElementBy

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

stockiNail
stockiNail commented Jan 27, 2020

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

storybook
afebbraro
afebbraro commented Oct 28, 2019

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://storybookjs.now.sh/official-storybook/?path=/story/addons-jest--with-tests'
    in a narrow width browser.
  2. Click on the Tests panel.
  3. Scroll down to see the tests panel.
  4. See the total number of tests and total time covering up the "Todo" tex
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
crapthings
crapthings commented Dec 19, 2019

where to declare .d.ts? 1.8.2

Package.describe({
  name: 'gooodrr',
  version: '0.0.1',
  summary: 'gooodrr',
  documentation: 'README.md'
})

Package.onUse(function (api) {
  api.use('typescript')
  api.mainModule('gooodrr.ts', 'server')
  api.export('Gooodrr', 'server')
})

where to put d.ts file?

declare module "meteor/gooodrr" {
    export module Goood
ionic
andreas-aeschlimann
andreas-aeschlimann commented Oct 30, 2019

Bug Report

Ionic version:

[x] 4.x

Current behavior:

When you navigate from a tab page to another tab page and then go back with the ion-back-button, you will always end up at tab index 0 of the first tab page.

Expected behavior:

Instead, the app should go back to the tab where the user came from.

Steps to reproduce:

To illustrate the problem, I have ta

goldbergyoni
goldbergyoni commented Oct 29, 2019

🎉🎉 The Node.js best practices guide has gotten even better during September and October, thanks to the many awesome contributions made by the following folks 🎉🎉

📢 🇷🇺 Our guide is now also translated to Russian (+ other 8 languages)! This thanks to the AMAZING work of Alex Ivanov @contributorpw ❤️

The following folks suggested & contributed great new ideas and enhancements:
🌻 Adeel Imran @A

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
Front-End-Checklist
pere
pere commented Oct 22, 2019

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

Related Topics

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