Four live diagrams: from one stored value to a function that walks a list
Four linked diagrams for a first course in JavaScript: variables, types, if/else, and a loop inside a function. Each one runs real JavaScript in this page and draws what comes back, so the boxes, results, branches and totals are the browser's answers, not pictures prepared in advance. One shared state links them: score from diagram 1 is a value in diagram 2, and the temperatures you push in diagram 3 are the list diagram 4 loops over.
score