No, you can learn JavaScript without having knowledge of HTML and CSS. However, learning and using JavaScript will be simpler for you if you have a fundamental knowledge of these languages.