Back to Freecodecamp

Step 1

curriculum/challenges/english/blocks/learn-introductory-javascript-by-building-a-pyramid-generator/6672e579cc11472272ab23e6.md

latest941 B
Original Source

--description--

JavaScript is the programming language that powers the web. Unlike the HTML and CSS you have learned previously, JavaScript is most commonly used to write logic instead of markup.

In this project, you will learn the basics of JavaScript and apply those concepts to building a pyramid generator.

A pyramid generator is a program where you can set the type of character, the count for the pyramid, and the direction of the pyramid. The program will then generate a pyramid based on those inputs.

Click on the "Check your code" button to proceed to the next step and start the project.

--hints--

Submit to continue.

js

--seed--

--seed-contents--

js
console.log("Let's build a pyramid using JavaScript basics:");
console.log("    #    ");
console.log("   ###   ");
console.log("  #####  ");
console.log(" ####### ");
console.log("#########");
--fcc-editable-region--

--fcc-editable-region--