Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

()[]+! in javascript

Tags:

How is it possible to only use ()[]+! to make javascript code?

Ex: http://discogscounter.getfreehosting.co.uk/js-noalnum.php

like image 415
Ramone Avatar asked Feb 26 '10 17:02

Ramone


People also ask

What is '$' in JavaScript?

Updated on July 03, 2019. The dollar sign ($) and the underscore (_) characters are JavaScript identifiers, which just means that they identify an object in the same way a name would. The objects they identify include things such as variables, functions, properties, events, and objects.

What does 3 dots in JS mean?

(three dots in JavaScript) is called the Spread Syntax or Spread Operator. This allows an iterable such as an array expression or string to be expanded or an object expression to be expanded wherever placed. This is not specific to React. It is a JavaScript operator.

What does '!' Mean in JavaScript?

symbol is used to indicate whether the expression defined is false or not. For example, !( 5==4) would return true , since 5 is not equal to 4.

What is == and === in JavaScript?

== is used for comparison between two variables irrespective of the datatype of variable. === is used for comparision between two variables but this will check strict type, which means it will check datatype and compare two values.


1 Answers

See Java/script: no alnum cheat sheets.

In short, various constructs yield NaN/undefined/window/etc. Stringify and index them to yield any string. Extract a property and call it to execute code.

like image 181
ephemient Avatar answered Oct 11 '22 22:10

ephemient