How to make a "Hello Word!" in this way

10

Without using the items below:

  • Strings and String-type functions before output
  • Numbers
  • Regular Expressions
  • Functions with the names: "Hello", "World", "HelloWorld" or anything similar to the output method var helloWord = function(){ //aqui seu código } .
  • Without using object keys with names: "Hello", "World", "HelloWorld" or something similar.
  • I came up with the example below, but the problem identified that I'm using string, does anyone have another idea?

    link

        
    asked by anonymous 09.09.2015 / 20:42

    2 answers

    1

    I found the solution:

    var helloWorld = function () {
      // Hello World!
      var start = [,,,,,,,,,,,,,,,,,,,].length,
          end = [,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,].length;
      alert(helloWorld.toString().slice(start, end));
    }
    helloWorld();
    
        
    10.09.2015 / 21:34
    2

    try the following:

    function SGVsbG8gV29scmQh() { }
    var helloWolrd = function () {
      alert(atob(new SGVsbG8gV29scmQh().constructor.name));
    }
    helloWolrd();
        
    10.09.2015 / 21:55