Is JavaScript and html-css enough to build a website?

my question is can I build a website like youtube, facebook, etc… with javascript and html-css?

the short answer is yes

the long answer is that to make the job easier you will need some kind of framework and library, otherwise you will need to create each component on your own

plus you need knowledge on how the backend works, to stay in the JavaScript field, Node.js is JavaScript but for the backend

the whole freecodecamp curriculum is HTML/CSS and JavaScript, even if it may not seem so

it is just that the complex interactive things are really difficult to build with vanilla javascript