Flowchart (ISO 5807)
Source code
JavaScript
function countUpper(s) {
let count = 0;
for (let i = 0; i < s.length; i++) {
const c = s[i];
if (c >= "A" && c <= "Z") {
count++;
}
}
return count;
}The editor opens with this code — change it and the chart redraws.
- Language
- JavaScript
- Constructs
- loop + condition
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG