JavaScript Variables and Assignment Operators

4.8
stars
33 ratings
Offered By
Coursera Project Network
2,275 already enrolled
In this Guided Project, you will:

Describe the purpose of a variable in JavaScript.

Compare basic JavaScript data types.

Write JavaScript code to declare and assign a value to a variable.

Clock1 hour and 55 minutes
BeginnerBeginner
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this beginning-level project you will work with JavaScript variables and assignment operators by writing and testing JavaScript code using the Notepad++ text editor and the Chrome browser. Since variables are used as containers to hold values in JavaScript, knowing how to use them is an essential skill for a JavaScript programmer. You will learn how to create a variable, name it correctly, and use it to store a data value using an assignment operator. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Data TypeJavaScriptVariablesAssignment Operators

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Describe what a variable is and how variables are used in JavaScript.

  2. Write the code to declare a variable in JavaScript using correct syntax and naming conventions.

  3. Describe data types used in JavaScript and why they are important.

  4. Practice assigning values to variables using the JavaScript assignment operators.

  5. Write JavaScript code that uses a variable to collect data from a user and display it on a web page.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.