who can help me with step 19 of java script
it asks me to make an array with bracklet with first value for the rows in console.log
tnx guys
Your code so far
// User Editable Region
let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
console.log("Noami")=array[1];
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 19
hi
Ive deleted “Noami” instead i put rows with value in bracket but it still didn’t work
what i wrote was that : console.log(rows)=[1]
but it wasn’t the answer
hi guys
can you plz help me with 19 step:
{You can access the value using bracket notation, such as array[0].
Use console.log and bracket notation to print the first value in your rows array.}
Your code so far
// User Editable Region
let character ='Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
console.log(rows)=[0];
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 19
hi bro
as you said
first of all i put my rows in parentheses . second i ad array before my bracket like this but it s still not pass
this is what ive typed: console.log(rows) = array[0]
You can access the values inside an array using the index of the value.
An index is a number representing the position of the value in the array, starting from 0 for the first value.
You can access the value using bracket notation, such as array[0].
For example, we have an array named letter:
let letter = ["a", "b", "c", "d"];
Now we want to get the letter "a", how can we do that?
The letter "a" is the first value in the array, so its index is : 0.
So, to get the letter "a" we use: letter[0].
If we want the letter "c", we use: letter[2], because its index is: 2
Now, the instruction gave us an array of names:
let rows = ["Naomi", "Quincy", "CamperChan"];
and asked us to:
Use console.log and bracket notation to print the first value in your rows array.
So:
What’s the first value of the row array? (you can use the example above as a reference)
How can we print out that value using console.log()?