I don't know if it's still the case, but one of the first things I learned about JavaScript was how it was inherently secure. Then I actually started using the language, and learned what utter bullshit that is.
Who told you that? I don't think "inherently secure" is a thing in the tech industry.