Flowchart (ISO 5807)
Source code
JavaScript
function sum(arr) {
let s = 0;
for (const x of arr) {
s += x;
}
return s;
}The editor opens with this code — change it and the chart redraws.
- Language
- JavaScript
- Constructs
- for-of
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG