Missing fragments

Report a typo

There are two places in this code marked as ??? that miss some values.

const { equal, deepStrictEqual } = require('node:assert');

const todos = [];

const addTodo = (todo) => {
   todos.push(todo);
};

addTodo({ text: 'learn assert', complete: false });
addTodo({ text: 'write a program', complete: false });

equal(todos.length, ???);
deepStrictEqual(???, [
   { text: 'learn assert', complete: false },
   { text: 'write a program', complete: false },
]);

What are the missing values?

Select one option from the list
___

Create a free account to access the full topic