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 3,492 public repositories matching this topic...

fniephaus
fniephaus commented Aug 10, 2018

Since state is a reserved keyword in Truffle's guard mechanism, it should not be possible to use it in a guard definition as this can cause serious problems. The annotation processor should either reject the state keyword in guard definitions or the state temporary variable produced by the processor should be renamed to avoid this conflict.

Here's an example:
<img width="629" alt="screen

feature truffle good first issue tracking
capacitor
customcommander
customcommander commented Feb 7, 2021

With Closure Compiler v20210106 and the following flags:

--language_in=ECMASCRIPT_NEXT
--compilation_level ADVANCED
--js tmp/wrap.js 

This works fine:

/**
 * @param {string} str
 * @param {string} [prefix=aa]
 * @param {string} [suffix=bb]
 */
function wrap1(str, prefix="aa", suffix="bb") {
  return prefix + str + suffix;
}

window.wrap1 = wrap
help wanted good first issue P4
metasfresh
DS-Algo-Point
itslinotlie
itslinotlie commented Oct 12, 2020

🚀 Feature

An easy to implement an algorithm that calculates range sums. It supports O(1) queries and O(n) updates.

Have you read the Contribution Guidelines?

👍

Pitch

PSAs are a beginner-friendly algorithm that helps reinforce the understanding of arrays. I can implement this in C++ and Java (:

Assigned
@RohanK6 - Java
@itslinotlie - C++
@mavneeK - C
@aniket

Created by Brendan Eich

Released December 4, 1995

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

Related Topics

nodejs