I wouldn't recommend javascript as anyone's first language unless you have a specific reason to choose it, like a project written in JS that you want to play around with.
I would recommend either Python, Go, or Rust. Python is simple and ubiquitous like JS but with much friendlier syntax. Go is not much more complicated with the bonus of static typing (basically more organized), and Rust is the complex, low-level language with built in guardrails in the compiler which will force you to write good, safe code -- probably only move to this one after you've spent a good bit of time fooling with one of the others.