Whale Talk/ Loops

Welcome to the Get Help category!

This is where you can ask questions about your code. Some important things to remember when posting in this category :slight_smile:

  • Learn how to ask a good question and get a good answer!
  • Remember to include a link to the exercise you need help with!
  • If someone answers your question, please mark their response as a solution :white_check_mark:
  • Once you understand a new concept, come back and try to help someone else!

Hello, I’ve been working on the Whale Talk / Loops Project and I can’t seem to get my code to log to the terminal. this is my code

const input = “turpentine and turtles”;

const vowels = [“a”, “e”, “i”, “o”, “u”];

const resultsArray = ;

for (let inputIndex = 0; inputIndex < inputIndex.length; inputIndex++) {
console.log(inputIndex is ${inputIndex}.);
for (let vowelsIndex = 0; vowelsIndex < vowels.length; vowelsIndex++) {
console.log(vowelIndex is ${vowelsIndex}.);

If someone can please tell me what I’m doing wrong I would really appreciate the help.

// Your code
for (let inputIndex = 0; inputIndex < inputIndex.length; inputIndex++) {
for (let inputIndex = 0; inputIndex < input.length; inputIndex++) {

Thank you very much! this fixed the problem immediately.