![]() ![]() If you’re using Safari on Mac, it’s a (little) bit more complicated. If you’re using Firefox (❤) or Chrome (□): press Ctrl + Shift + C (on Windows and Linux) or Cmd + Option + C (on Mac). The Firefox developer tools, French edition. tell your machine to read) JS code and see the results than to open an HTML file, so we’ll keep it simple for this first lesson and use an editor that’s already present in your web browser: the developer tools. However, it’s a little more complicated to run (a.k.a. You already know how to use a code editor, we talked about it in chapter 5. So you might be thinking: “ok yes that’s great and all but how do I actually tell my computer to read this code? I want to try this on my machine!”. Yes, 11! … … … Just kidding it was 2, as you probably guessed! □ And I’m sure you already know what your computer would display here when reading this code. Now you might be thinking hmmmmmm yes, I see wtf is this sh BUT bear (yes, □) with me here and I’m sure it’ll make more sense pretty soon. In JS, code looks like this: const test = "abc" console.log(test) The text we type to communicate with the computer is called the source code, or simply “code” in its shorter form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |