Only true as of language. If you're doing websites you get to learn idiosyncrasies of browsers, DOM manipulation, asynchronous design, performance considerations, etc. That on top of how HTML and CSS is laid out and converted to DOM.
Which is as hard if not harder.
Javascript is not easy to learn. Many language quirks, and doing anything fancy with asynchronous code will require an understanding of closures, functional programming, and perhaps promises.
Of course it is easy to produce toy projects.