Wow:
> const nuII = {};
> nuII.prop = true;
> nuII.prop = 'hello';
> nuII.prop
'hello'
(Incidentally, we should use serif fonts more often on the web.)
@rauschma
(courtesy of yaytext.com/monospace)
> 𝚌𝚘𝚗𝚜𝚝 𝚗𝚞𝚕𝚕 = {};
> 𝚗𝚞𝚕𝚕.𝚙𝚛𝚘𝚙 = 𝚝𝚛𝚞𝚎;
> 𝚗𝚞𝚕𝚕.𝚙𝚛𝚘𝚙 = '𝚑𝚎𝚕𝚕𝚘';
> 𝚗𝚞𝚕𝚕.𝚙𝚛𝚘𝚙
'𝚑𝚎𝚕𝚕𝚘'
I had to change the funny-L's, as mentioned by others.
@ptmcg https://yaytext.com/monospace/ is neat.
Just in case: It was meant to be a joke. The code only works *with* funny Ls (but you can’t tell that they are funny with a sans-serif font). Otherwise, you get syntax errors.
@rauschma Ah! I did something similar in Python - this is valid Python code:
def ℎ𝕖𝐥l𝙤():
try:
ℎ𝙚𝕝𝗹𝘰_ = "Hello"
w𝔬𝓇ˡ𝚍﹎ = "World"
𝖕𝘳𝒊𝖓𝑡(f"{𝗵𝒆𝘭𝓵𝚘﹍}, {𝑤º𝘳l𝑑︴}!")
except T𝗒ₚ𝕖E𝗿𝗋𝗈𝓻 as ᵉ𝒙ⅽ:
𝐩ᵣ𝚒𝖓𝓉("failed: {}".𝕗𝕠r𝑚𝖺𝘵(ⅇ𝔵𝚌))
if _︳n𝗮𝖒𝓮﹍︳ == "__main__":
h𝙚ⅼ𝐥𝕠()