简体   繁体   中英

VSCode Intellisense does not show any suggestion

Hello when i use VSCode for javascript sometimes intellisense doesn't show any suggestion. It's same for other functions like for example.map, .filter vs.. Why is that? I'am new on VSCode. Thanks to everybody for help

Here it doesn't suggest me indexOf

Here it recognized indexOf and show me explanation

Its because how you're declaring your variable. VSCode doesn't know what kind of variable its going to be because you haven't defined it a default value.

Assign your variable as let yourVar = []; .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM