Actually according ECMAScript Specification, even though JavaScript is referred as a web scripting language it can be used in multiple domains. But when we speak about JavaScript in browser (as mentioned in the later part of the blog) it actually means the combination of two things: the language itself and DOM API where we would consider it as a DSL. Hope it helps!