inline hints behaving weirdly (I think)

Newby. Javascript. My code: <document.createElement(canvas);> (text I type is in<..>) The inline hint "tagName:" appears in a grey rectangle in the editor. So I put the cursor at opening parens, type <ta>. Get a long list of possibilities, NONE of which is tagName:. So I type <tagName:>. This creates an error, and the hint does not go away. 

Is this what's supposed to happen? 


1 comment

tagName here is a parameter name; this method expects a tag name (like "div") to be passed as argument, like

const newDiv = document.createElement("div");




Please sign in to leave a comment.