Home
Tracks
Reset
Help
Theebug — Learn MongoDB by Doing
Light
Explorer
···
▼
THEEBUG
▼
easy
lesson1.js
lesson2.js
lesson3.js
▼
medium
lesson4.js
lesson5.js
▼
hard
lesson6.js
Completed
0/6
Score
0
JS
lesson1.js
×
THEEBUG
›
lesson1.js
1
const
result
=
await
users
.
______
(
{
name
:
"Ada"
,
age
:
30
}
)
;
2
console
.
log
(
result
.
insertedId
)
;
TERMINAL
PROBLEMS
OUTPUT
DEBUG CONSOLE
⊕
⋮
$
[system] Theebug ready. Happy coding!
Code Blocks
Drag blocks into the drop zones above
4 blocks available
insertOne
insertMany
insert
create
Game Panel
0:00
0 pts
Level 1 of 6
Inserting a Document
0/1 slots correct
Objective
Insert a single new user document into the collection
Expected Output
ObjectId(...)
Use a hint
Debug says:
MongoDB stores data as JSON-like documents, not rows in a table. Which method inserts exactly one new document into a collection?
Debug the Worm