---
title: "Discussion on \"Code anything in JavaScript, with only 8 characters\" | Hashnode"
description: "Discussion on \"Code anything in JavaScript, with only 8 characters\". You can convert any Javascript code into these characters:\n()[]{}!+\nand only these characters.\nHere's how:\nNumbers\nWe can get 0 by casting an empty array using +[]. The + is the unary plus, which converts the right side into a numeric value, i.e. 0, ..."
url: "https://hashnode.com/posts/code-anything-in-javascript-with-only-8-characters/689213ba164e4e866fdeb6a6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Code anything in JavaScript, with only 8 characters](https://blog.mcgee.cat/code-anything-in-javascript-with-only-8-characters?utm_source=hashnode&utm_medium=feed)

You can convert any Javascript code into these characters: ()\[\]{}!+ and only these characters. Here's how: Numbers We can get 0 by casting an empty array using +\[\]. The + is the unary plus, which converts the right side into a numeric value, i.e. 0, ...

Jul 28, 2020 · 4 min read · blog.mcgee.cat  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javscript](https://hashnode.com/tag/javscript)

## Written by

[Cat McGee](https://hashnode.com/@catmcgee)

@catmcgee · Ireland

  
[View profile](https://hashnode.com/@catmcgee)

i write about blockchain dev, zk, and other things

I'm Cat! I'm a software developer and advocate for the decentralized web

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
