Learn Introductory JavaScript by Building a Pyramid Generator - Step 37

Tell us what’s happening:

I am stuck on step 37. I dont know what print means, please i need help because i have tried using console.log() but its not working

Your code so far

const character = "#";
const count = 8;
const rows = [];

// User Editable Region

for (let i = 0; i < count; i = i + 1) {}
 console. log(print i )

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 37

hello and welcome to fcc forum :slight_smile:

  • console logging is referring to “printing” here
  • only keep “i” in console log

happy coding :slight_smile:

thanks. is there a way to solve my problem

hi there!

for printing somthing in javascript you need to add it within the console log statment like this: console.log(printValue) .
for the challenge step you need to print i using console.log() within the {} body of your for…loop.

how??? please explain

i have explained it above.

Tell us what’s happening:

please can someone write the code for step 37 java script

Your code so far

const character = "#";
const count = 8;
const rows = [];

// User Editable Region

for (let i = 0; i < count;console.log(print i = i + 1)) {}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 37

please can you write the code? :slightly_smiling_face:

Print means pass through the console log.

posting code is not allowed here on the fcc forum. i can gave you hint.

you need to add i within the console.log(here).

hey! do not create duplicate topic. posting code is not allowed here on the forum.

Print means to log in the console, for example.

console.log(“Hello World”)