Question from the Javascript - Fundamentals test

Archived

What does the if loop do?

function getSize(tab) { 
    return tab.length(); 
} 
const list = ['rice', 'quinoa', 'semolina', 'milk']; 
if (getSize(list)!= 4) { 
    console.error('error');
 } 
Author: KahinaStatus: Archived(New question!)Question passed 30 times
-1
Community EvaluationsNo one has reviewed this question yet, be the first!