Web & configuration
Follow JavaScript functions and data transformations in standalone scripts or within mixed web source.
A clearer way to read JavaScript
Use this workspace to inspect functions, objects, expressions and control flow. Paste your source, choose format, and follow the resulting structure. The sample button supplies a starting point only when you request it.
const orders=[{price:12,quantity:2},{price:8,quantity:3}];function total(items){return items.reduce((sum,item)=>sum+item.price*item.quantity,0);}console.log(total(orders));This page also accepts supported mixed web source. You can use the Web workspace for documents combining several supported languages. A complete page is not required.
Formatting helps with reading and structural review. It does not replace the language compiler, database validation or testing of application behavior.
Paste JavaScript source you want to study, especially functions, objects, expressions and control flow. Your input starts empty; loading a sample is optional.
Formatting does not execute submitted SQL or application code. The separate Web page preview can run browser-side content in an isolated frame after you choose to open it.
The hosted site processes formatting on its server. Formatting activity stores the exact submitted source and its outcome. Direct local-file training works without activity requests. See our privacy information before submitting sensitive code.