Week #1: Tutorials + Problem Set + Blog Question.


Here is a link to this week’s tutorial exercises.

Problem Set:





This first week of class was an introduction to Javascript. I have never used Javascript before so this was definitely all new information to me. At first, it seemed kind of tricky but as you keep practicing, you slowly begin to get the hang of it. Because I am familiar with other types of coding, that helped immensely.

How to link a Javascript file.

In order to link a javascript file with an html file, you need to use the <script>tag. Here’s an example:

<script type="text/javascript" src="desserts.js"

Describe the difference between writing code in the Chrome console and writing HTML/JS files that are then open in Chrome.

You need to use console.log( ) if you want your work to appear on Google Console. When trying to see something you’ve done in Visual Studio Code, or whichever text editor you prefer to use, you would open up Google and go to the developer console for javascript, and you should be able to see the work you have completed.

Join the Conversation

1 Comment

  1. The console.log(val) function is very useful to help you report what’s happening in your code. In the early stages of learning you’re using to practice and ‘see’ something, but later on it’s going to be very useful for troubleshooting.

    Also, the JS Console in Chrome can basically run any JS that you put in it. So people actually teach the basics of JS using the console exclusively. It think it’s useful, but it’s also practical to learn the fundamentals of the workflow – text editor(VS Code), HTML, and JS files.

Leave a comment

Your email address will not be published. Required fields are marked *