Code:
// Manually defining the unicode alphabet in an array.
var alpha = ["\u0041", "\u0042", "\u0043", "\u0044", "\u0045", "\u0046", "\u0047", "\u0048", "\u0049", "\u004A", "\u004B", "\u004C", "\u004D", "\u004E", "\u004F", "\u0050", "\u0051", "\u0052", "\u0053", "\u0054", "\u0055", "\u0056", "\u0057", "\u0058", "\u0059", "\u005A"];
// Manually definine special characters in an array of unicode, spac = \u0020
var special = ["\u0020", "\u0021", "\u0022", "\u0023", "\u0024", "\u0025", "\u0026", "\u0027", "\u0028", "\u0029"];
//Assinging letters as variables to the index of the unicodes.
var h = alpha.indexOf('\u0048');
var e = alpha.indexOf('\u0045');
var l = alpha.indexOf('\u004C');
var o = alpha.indexOf('\u004F');
var w = alpha.indexOf('\u0057');
var r = alpha.indexOf('\u0052');
var d = alpha.indexOf('\u0044');
var sp = special.indexOf("\u0020");
var exp = special.indexOf("\u0021");
//Creating a prototype to bind 'console.log' to 'logThisOutYeahMate'
var logThisOutYeahMate = Function.prototype.bind.call(console.log, console);
// A sequence of if statements to see if the unicode character exists. If it exists it'll return a numerical value
// Of the position in the array. Luckily A isn't used, as it's position would be 0, resulting in a 'false' and not
// allowing the if statement to run
if (alpha.indexOf('\u0048')) {
if (alpha.indexOf('\u00485')) {
if (alpha.indexOf('\u004C')) {
if (alpha.indexOf('\u004C')) {
if (alpha.indexOf('\u004F')) {
// Oh look, here's an anomaly... The position of '\u0020' in the array 'special' is 0, which is equivalent to
// false. So we'll just check if it equals the Numeric 0, which is true.
if (special.indexOf('\u0020') === 0) {
if (alpha.indexOf('\u0057')) {
if (alpha.indexOf('\u004F')) {
if (alpha.indexOf('\u0052')) {
if (alpha.indexOf('\u004C')) {
if (alpha.indexOf('\u0044')) {
// Creates a function that takes the argument 'doTheThingWhenTheThingIsDone'
function f(doTheThingWhenTheThingIsDone) {
// Checks if the variable 'doTheThingWhenTheThingIsDone' is equal to the unicode string of
// 'The thing to be done'
if (doTheThingWhenTheThingIsDone == '\u0054\u0068\u0065\u0020\u0074\u0068\u0069\u006e\u0067\u0020\u0074\u006f\u0020\u0062\u0065\u0020\u0064\u006f\u006e\u0065') {
// Calls the bound logThisOutYeahMate function previously defined, and applies it to the
// the console.
logThisOutYeahMate.apply(console, [alpha[h].toUpperCase() + alpha[e].toLowerCase() + alpha[l].toLowerCase() + alpha[l].toLowerCase() + alpha[o].toLowerCase() + special[sp].toLowerCase() + alpha[w].toLowerCase() + alpha[o].toLowerCase() + alpha[r].toLowerCase() + alpha[l].toLowerCase() + alpha[d].toLowerCase() + special[exp].toLowerCase()]);
// We call each unicode character from the array 'alpha' by parsing it the variables we
// previously defined by checking the indexOf
// And we make sure these are all either UPPER-CASE, or lower-case
}
}
// We call the function, and set the argument 'doTheThingWhenTheThingIsDone' to equal the unicode string
// equivalent to 'The thing to be done'
f(doTheThingWhenTheThingIsDone = '\u0054\u0068\u0065\u0020\u0074\u0068\u0069\u006e\u0067\u0020\u0074\u006f\u0020\u0062\u0065\u0020\u0064\u006f\u006e\u0065');
}
}
}
}
}
}
}
}
}
}
}
2,217 Bytes
Gotta' make sure those letters exist.