質問: Write a program that prints "Hello, world!" without using any kinds of literals. Don't use string literals, numeric literals, byte literals, char literals, etc. Default values are allowed in languages that have them. Printing data from external files/websites/arguments is not encouraged. edit: probably don't use Boolean literals either. double edit: I don't necessarily want the code to be obfuscated. results that are clearly understandable are better. triple edit: this is not duplicate because the other questions require obfuscated answers or are code-golf.
回答: JavaScript ========== i did not use any custom literals if it counts. (implying Function.name doesn't exist) ``` function Hello(){} function World(){} var hello_str = uneval(Hello), world_str = uneval(World), _1 = (+new Date())/(+new Date()), _2 = _1+_1, _4 = _2*_2, _8 = _2*_4; alert([ hello_str.substr(_8, _8 - _2), world_str.substr(_8, _8 - _2) + String.fromCharCode(_8 * _4 + _1) ]); ``` try: