![]() ![]() the program is read line by line by a computer vs. When “scripting language” is used to describe these general-purpose languages, it indicates that the language is interpreted vs. Examples are shell languages, like Bash, as well as other, general-purpose languages like JavaScript, PHP, Python, and Ruby. Programs that are written in a scripting language execute as if run line-by-line by a human. Scripting language – A scripting language is a programming language designed for a particular environment, usually used to accomplish specific tasks. Mac operating systems are based on Unix, so this is usually the shell that opens by default in the Terminal on a Mac. The console in the browser developer tools can be seen as a shell for the browser.īash – Bash is a Unix shell and scripting language, accessible in the command line (i.e. It’s called a shell because it’s “built around” the inner part of the operating system, often called the kernel. Shell – A shell is a program that allows a user to interact with the operating system. You should see the output, “Hello, Lara!”.Run the command sh example.sh Lara (notice the sh before the file path). ![]() cd to the directory where you created the file in Step 1.Name it example.sh (shell scripts use the.a directory where you save coding projects) Create a new file in a location that is easy to access (e.g.In this post, when I refer to JavaScript, I am referring to Node.js or server-side JavaScript. Understanding of the difference between Node.js and client-side JavaScript.Ability to cd into a directory from the command line.An idea of what it means to run, or execute, a script (a relevant talk by Susie Grange about teaching concepts like “run”).In this post, I assume that readers have the following knowledge: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |