It depends on your career goals if you want to be a Frontend or Backend Developer.
For becoming a Frontend Developer, you definitely should have Intermediate to Advance knowledge of JavaScript as JavaScript is the language of Web and all browsers only understand Javascript.
But if you want to be Backend Developer, Just basic Working Knowledge is enough.
Remember JavaScript, HTML and CSS are the three core things you need to know for becoming a web developer.