DEV Community

chenge
chenge

Posted on

What's the "//?" in the Code Editor

"//?" can eval instantly. I saw it in this short JS teaching video. It seems cool. What plugin is it?

Top comments (8)

Collapse
 
cobuskruger profile image
Cobus Kruger

It's Quokka.

I found the answer on the instructor's GitHub page, here: github.com/jordanhudgens/vscode-se...

Collapse
 
chenge profile image
chenge

Really thanks.

Collapse
 
chenge profile image
chenge

Quokka can give hint, but how to get "//?" effect?

Collapse
 
bananabrann profile image
Lee

Does it say what the // and //? Is? I’m on mobile, and the full readme isn’t loading.
On my Mac and Windows, I see neither // nor //? to begin with.

Collapse
 
cobuskruger profile image
Cobus Kruger

So actually, I didn't know about it until today. I just spotted the extension listed on that GitHub page.

Fortunately, I could never let a good mystery go to waste.

Here:
quokkajs.com/docs/index.html

The page is chock-full of video animations, including some showing how to use the comments.

Actually, the extension seems pretty amazing.

Thread Thread
 
chenge profile image
chenge

Cool, I find it in doc. Live Feedback.

Thread Thread
 
chenge profile image
chenge

//? is in the pro version.

Free version is fun and useful.

Collapse
 
iamjoross profile image
Jose Ross Barredo

// is a symbol for a single-line comment in JavaScript. My best guess is for like line 9, what he is trying to imply is he is adding a short documentation for the expected result.