In my mind scripting means what it is: You read a file like a script from top to bottom and run it. Declarations are actually instructions for a "declarer routine". There's usually no predefined entry point function, and if there is one it's optional.
Compiled/interpreted is kind of besides the point.
Julia (compiled, btw), ruby, python, php, perl, bash, JavaScript thus are all scripting languages.
Java, c, c#, go, f# rust, zig, Erlang, some flavors of lisp, node-style javascript, are not.
There are some corner cases. I consider elixir, for example to be a scripting language for it's own compiler which produces a very much non-scripted result.
Compiled/interpreted is kind of besides the point.
Julia (compiled, btw), ruby, python, php, perl, bash, JavaScript thus are all scripting languages.
Java, c, c#, go, f# rust, zig, Erlang, some flavors of lisp, node-style javascript, are not.
There are some corner cases. I consider elixir, for example to be a scripting language for it's own compiler which produces a very much non-scripted result.