In the following JavaScript code snippet, the output of oddsums(5) is ________________________________.
function oddsums(n) {
var total = 0,
result = [];
for (var x = 1; x <= n; x++) {
var odd = 2 * x - 1;
total += odd;
result.push(total);
}
return result;
}
RDBMS and MongoDB are being compared. It is known that you use tables in RDBMS but MongoDB has its own way of gathering information.
What is the format in which MongoDB accumulates data?