MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / main

Function main

javascript_games/diamonds.js:16–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14'use strict';
15
16function main() {
17 console.log('Diamonds, by Al Sweigart al@inventwithpython.com');
18
19 // Display diamonds of sizes 0 through 6:
20 for (let diamondSize = 0; diamondSize < 6; diamondSize++) {
21 displayOutlineDiamond(diamondSize);
22 console.log(); // Print a newline.
23 displayFilledDiamond(diamondSize);
24 console.log(); // Print a newline.
25 }
26}
27
28
29function displayOutlineDiamond(size) {

Callers 1

diamonds.jsFile · 0.70

Calls 2

displayOutlineDiamondFunction · 0.70
displayFilledDiamondFunction · 0.70

Tested by

no test coverage detected