Remove portion of string in Javascript

javascript, string

Solution

var new_string = string.replace('Whats on your mind?', '');

Problem

I have a String like this in Javascript: ``` string = '@usernameWhats on your mind?' ``` I need to get rid of `'Whats on your mind?'` from the string. How would I do that?

Original source