Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
JavaScript
medium
JavaScript
generators and yield
Single-choice MCQ
What does the snippet print?
function* g(){yield "a"; yield "b"}\nconsole.log(g().next().value);