This block of code outputs a mini “grading book” for some students and their assignment scores. How many lines are output to the console in total when the code is run?

You must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile: [quote=“lilybird, post:1, topic:522511, full:true”]
To search for previous answers on the forums:

1. Click on the Get Help category and choose the specific language subcategory that correlates to the course/subject you’re on. Ex: Get Help > HTML

2. Use search :mag: in the upper right-hand corner and type in keywords or short phrases (e.g. ‘Semantic HTML’)

3. Use tags –– select tags from the drop down to narrow your search.

4. View all solved posts under individual language subcategories (e.g. Python) within the Get Help Category. ‘Solved’ posts are great for seeing how learners helped each other reach a ‘solution’ to their code questions.
Screen Shot 2021-02-07 at 6.52.49 PM

If you don’t find what you’re looking for – go-ahead and create a topic to ask your question!
[/quote]

const dividerLine = ‘------------------------------’;
const students = [‘Joe’, ‘Ann’, ‘Tom’, ‘Bert’];

console.log(dividerLine);
for (let s = 0; s < students.length; s += 1) {
console.log('Student: ’ + students[s]);
for (let a = 1; a <= 4; a += 1) {
console.log( Assignment ${a}: _______);
}
console.log(dividerLine);
}