Flowchart (ISO 5807)
Source code
TypeScript
function sum(arr: number[]): number {
let s = 0;
for (let i = 0; i < arr.length; i++) {
s += arr[i];
}
return s;
}The editor opens with this code — change it and the chart redraws.
- Language
- TypeScript
- Constructs
- for + types
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG