Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
JavaScript
hard
JavaScript
generators and yield
Single-choice MCQ
1 views
What does this code print?
function* g() { yield 0; yield 1; yield 2; }\nconsole.log(...g());