Skip to content

TypeScript code snippet – How to take multiple inputs in one propmt?

const inputs = prompt("Enter your inputs separated by a tilde ~").split("~");

console.log(inputs);
See also  How to get count by using group by in Python?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.