Js code in vim cannot be folded

  question, vim

My code snippet is shown in the following figure


My vim profile is as follows:

This time I presszaThere is no way to fold the code.

However, python functions can be folded normally in python files.


Ask the great god for an answer.

Yes./syntax/javascript.vimThat’s it.
Yoursset foldmethod?What is the output?