so I added a prompt('Enter something);
. then for example I entered 'Hello world!' then I want this to have only 5 characters. So it will return 'Hello'. if I entered 'something', it will return 'somet'. how do I do that in JavaScript?
apologies if there's another question like this.