P
P
Popa_Russkaya2021-10-07 17:25:40
Node.js
Popa_Russkaya, 2021-10-07 17:25:40

How to make /command?

Briefly about what information I want to receive. Let's say I have a variable: And I need it so that when the user, for example, writes: "/command text text2" , then in alert (), there will be the following information:var msg = '/value value2 value 3;

alert(value+' | '+value2+' | '+value3); // «/command | текст | текст»

Alert should display the following information: "/command | text | text".

I hope my thoughts are clearly explained. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-10-07
@MaKvc

When people learn to use search... Okay, search, how many brains do you need to look into the documentation?
Node.js Doc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question