How can i add my own js snippets in codemirror

How i can add js snippets in codemirror 5.

This question is so unspecific and vague to be entirely unanswerable, sorry.

Sorry marijin, I will try to explain my question to you better.
I’m trying to add a specific word to the javascript hints and click on it to be like a snippet but I don’t know how to do it.

CodeMirror 5 doesn’t come with snippet support built-in. I think there were 3rd party implementations floating around at some point but I can’t find a proper one right now. CodeMirror 6 does support these, see the docs (but note that that rewrite isn’t stable yet).