Gijo Varghese gave the best answer here... They are for all intents and purposes the same thing with the only difference being the underlying object model of the browser environment. It's just the older name having been used for so long refuses to go away, and ECMAScript doesn't exactly roll off the tongue.
... but I highly recommend you learn how to build things without the train wreck of developer ignorance and ineptitude -- yes, those two words I constantly overuse -- that are frameworks like React.
If you don't know how to do things with JavaScript/ECMAScript (same thing) without the framework, you won't know if what the framework is doing is in fact the correct, easiest, simplest, or best way of doing things.
Which to be brutally frank, any such nonsense is usually the exact opposite of. React, angular, vue -- complete waste of time, effort, and all the claims made about them are typically made out of ignorance on the most basic of HTML, CSS, and JavaScript concepts. They create more code, more abstractions, more convoluted logic, take longer to develop, are harder to maintain, and more often than not flip the bird at accessibility norms; no matter how often the fans of such trash constantly parrot how much "easier" it is or how "productive" it makes them. Such claims are at best those who don't know any better repeating what they were told, and at worst a bald faced lie!