Kipangaji JavaScript
Panga JavaScript
Inafanya kazi ndani ya kivinjari chako · Hakuna kupakia
Zana hii na maelekezo kwenye ukurasa huu bado ni kwa Kiingereza kwa sasa. Inafanya kazi vilevile: kila kitu kinafanya kazi ndani ya kivinjari chako.
Kivinjari chako ni cha zamani mno kuendesha zana hii. Tafadhali kisasishe, au tumia toleo la sasa la Chrome, Edge, Firefox au Safari.
- Hakuna kinachoondoka kwenye kifaa chako
- Hakuna kikomo cha ukubwa kutoka kwa seva
- Hakuna kujisajili, hakuna alama maji
- Bure
How to format JavaScript
- Paste your code, open a .js file, or try the example.
- Choose the indentation and where braces go.
- Copy or download the formatted code.
Good to know
- Only spacing and line breaks change; the code does exactly the same thing.
- Short variable names from a minifier stay short: formatting can't bring back the original names.
- The formatter doesn't check for errors. Code with a syntax error is formatted as well as possible.
- Formatting is done by js-beautify, a widely used open-source formatter.
Maswali yanayoulizwa mara kwa mara
Does it work for JSON and TypeScript?
JSON, yes (the JSON Formatter also checks it). TypeScript mostly formats fine, but type syntax isn't fully understood.
Is my code uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.