Loop that appends each letter of the alphabet together

I am new to programing and am struggling with a homework question.
The question is as follows:

Write a “for” loop that appends (string concatenation) each letter of the alphabet together and after the “for” loop has finished running, logs the output to the console. (hint: you should have one long string of “abcdefg”, etc.)

I tried declaring a variable “abcdefgh….” and using the pop method to remove each letter but was told that is not the correct way. I talked with my professor and she told me the code should consist of a large loop body consisting of ifs or switch cases.

let getAlpha = "";
for (i = 0; i <= strAlpha.length; i++){
    getAlpha.pop();
    console.log(getAlpha);
}

I think I’m very far off the actual answer, but am not sure how to get there.

16 thoughts on “Loop that appends each letter of the alphabet together”

  1. I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored subject matter
    stylish. nonetheless, you command get bought
    an nervousness over that you wish be delivering the following.
    unwell unquestionably come more formerly again as exactly
    the same nearly very often inside case you shield this hike.

    Reply
  2. Do you mind if I quote a few of your articles as
    long as I provide credit and sources back to your blog?
    My blog is in the very same niche as yours
    and my visitors would genuinely benefit from a lot of the
    information you provide here. Please let me know if this
    ok with you. Appreciate it!

    Reply
  3. You really make it seem so easy with your presentation but I find this
    topic to be actually something that I think I would never
    understand. It seems too complicated and extremely broad for me.
    I’m looking forward for your next post, I will try to get the hang of it!

    Reply
  4. When someone writes an piece of writing he/she
    keeps the image of a user in his/her brain that how a user
    can be aware of it. Thus that’s why this piece of writing is great.
    Thanks!

    Reply
  5. I loved as much as you will receive carried out right here.
    The sketch is attractive, your authored subject matter stylish.
    nonetheless, you command get got an edginess over that you wish be delivering the following.
    unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this increase.

    Reply