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 create a circle with CSS?

Leave a Reply

Your email address will not be published. Required fields are marked *

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