Flowchart (ISO 5807)
Source code
JavaScript
function power(base, exp) {
if (exp === 0) return 1;
return base * power(base, exp - 1);
}The editor opens with this code — change it and the chart redraws.
- Language
- JavaScript
- Constructs
- recursive power
- Topic
- Recursion
- Formats
- Word, Visio, draw.io, PDF, SVG