Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

JavaScript Identifiers

// How convenient!
var π = Math.PI;

// Sometimes, you just have to use the Bad Parts of JavaScript:
var ಠ_ಠ = eval;

// Code, Y U NO WORK?!
var ლ_ಠ益ಠ_ლ = 42;

// How about a JavaScript library for functional programming?
var λ = function() {};

// Obfuscate boring variable names for great justice
var u006Cu006Fu006Cu0077u0061u0074 = 'heh';

// …or just make up random ones
var Ꙭൽↈⴱ = 'huh';

// Did you know about the [.] syntax?
var ᱹ = 1;
console.assert([1, 2, 3][ᱹ] === 2);

// While perfectly valid, this doesn’t work in most browsers:
var foou200Cbar = 42;

// This is *not* a bitwise left shift (`<<`):
var 〱〱 = 2;
// This is, though:
〱〱 << 〱〱; // 8

// Give yourself a discount:
var price_9̶9̶_89 = 'cheap';

// Fun with Roman numerals
var Ⅳ = 4;
var Ⅴ = 5;
Ⅳ + Ⅴ; // 9

// Cthulhu was here
var Hͫ̆̒̐ͣ̊̄ͯ͗͏̵̗̻̰̠̬͝ͅE̴̷̬͎̱̘͇͍̾ͦ͊͒͊̓̓̐_̫̠̱̩̭̤͈̑̎̋ͮͩ̒͑̾͋͘Ç̳͕̯̭̱̲̣̠̜͋̍O̴̦̗̯̹̼ͭ̐ͨ̊̈͘͠M̶̝̠̭̭̤̻͓͑̓̊ͣͤ̎͟͠E̢̞̮̹͍̞̳̣ͣͪ͐̈T̡̯̳̭̜̠͕͌̈́̽̿ͤ̿̅̑Ḧ̱̱̺̰̳̹̘̰́̏ͪ̂̽͂̀͠ = 'Zalgo';
Comment

PREVIOUS NEXT
Code Example
Javascript :: infinite loop example 
Javascript :: auto create a test file in angular 
Javascript :: js what does var mean 
Javascript :: what are escape characters in javascript 
Javascript :: time complexity of slice javascript 
Javascript :: how to delete an exact element of array 
Javascript :: js date option 
Javascript :: dynamodb count items node 
Javascript :: nodemon exclude 
Javascript :: Finding Value of Promise With Then Syntax 
Javascript :: reverse string 
Javascript :: Session Time Out 
Javascript :: strong password javascript 
Javascript :: data attribute hide & show function syntax in jquery 
Javascript :: js some 
Javascript :: jquery change label content 
Javascript :: js while loop 
Javascript :: add a class in react 
Javascript :: promises in javascript 
Javascript :: vue send data between components 
Javascript :: frames[i] javascript 
Javascript :: email validation in javascript 
Javascript :: concate array to string javascript 
Javascript :: chai js 
Javascript :: Get the Timezone 
Javascript :: type of jvascript data 
Javascript :: js get variable from url 
Javascript :: The ".charAt()" JavaScript string method 
Javascript :: json_extract in non native query 
Javascript :: How To Use Multiple Styles in REACT 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =