Flowchart (ISO 5807)
Source code
TypeScript
function size(n: number): string {
switch (n) {
case 0: return "нуль";
case 1: return "один";
default: return "багато";
}
}The editor opens with this code — change it and the chart redraws.
- Language
- TypeScript
- Constructs
- switch + default
- Topic
- Switch / case
- Formats
- Word, Visio, draw.io, PDF, SVG