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 2,435 public repositories matching this topic...

graemerocher
graemerocher commented Oct 2, 2019

Currently register looks like:

   private static <T> void register(Map<T, T> substitutions, T annotated, T original, T target) {
        if (annotated != null) {
            guarantee(!substitutions.containsKey(annotated) || substitutions.get(annotated) == original || substitutions.get(annotated) == target, "Already registered: %s", annotated);
            substitutions.put(annotated,
skatsman
skatsman commented Jul 14, 2020

There seems to be an issue with parsing composite character sequences.

Composite character consist of the base character and combining character sequence (U+0049)(U+0307)
Using this character causing the compiler to fail with the parser error.

Example code

var bar = {
İ: "foo"
};

Compiler error

input0:2: ERROR - [JSC_PARSE_ERROR] Parse error. Ch
capacitor
DS-Algo-Point
niranjantuty
niranjantuty commented Oct 7, 2020

🚀 Feature

Given two variables x and y, swap two variables without using a third variable.

Input:
x = 2, y = 1
Output:
x = 1, y = 2

Have you read the Contribution Guidelines?

Yes.

Pitch

This is a common interview question asked for freshers.

Assignees

@RohanK6 - Java
@ankit9905 - C++
@DefCon-018 - Python
@yashkansal - C
@Shrey2002 - C#, PHP
@arsh9806 - J

Created by Brendan Eich

Released December 4, 1995

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

Related Topics

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