Course Content
Introduction to JavaScript
Introduction to JavaScript
3. Performing Operations in JavaScript
Understanding Assignment OperatorsMathematical Operations in JavaScriptAssignment Operators in JavaScriptIncrement and Decrement OperatorsChallenge: Variable Operations PracticeComparison Operators in JavaScriptLogical Operators ExplainedChallenge: Compare Variables in JavaScriptConcatenating Strings in JavaScriptChallenge: Build Sentences with JavaScript
4. Controlling Program Flow with Conditional Statements
5. Looping Through Data in JavaScript
Challenge: Define the Variable
Task
- Define a variable named
myVar
and assign the value15
to it. - Print the variable
myVar
to the console.
___ ___ = ___; console.log(___);
- Use the
let
keyword to declare a variable. - Assign the value 15 to the variable using the assignment operator (
=
). - Use the
console.log()
function to print the variable's value to the console.
let myVar = 15; console.log(myVar);
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 2