• in
InterCourses
CoursesBlogs
0
← Introduction to JavaScript
●What is JavaScript?○Your First JavaScript Code○Data Types○Type Checking
○Declaring Variables○let and const in Practice○Operators○Type Conversion
○Conditionals○Switch Statement○For Loops○While Loop○Break and Continue
○Defining Functions○Arrow Functions○Scope○Closures○Project - Calculator○Function Expressions
○Arrays○Array Mutation Methods○Array Search and Slice○Array Iteration Methods○Multidimensional Arrays○Destructuring○Array Reverse and Sort○Array Fill○Array Find and Includes○Array Flat and FlatMap○Array Reduce, Some, and Every
○Objects○Object Methods and Destructuring○JSON○Math and Date○Date Basics
○02 Template Literals○String Methods○Regular Expressions
○Higher-Order Functions○Callbacks○map, filter, and reduce○Recursion○Project - Data Transform Pipeline
○OOP Introduction○Classes○Inheritance○Encapsulation
○Asynchronous JavaScript○Promises and Async Await○Async API Simulation

What is JavaScript?

JavaScript runs in the browser and powers the interactive parts of the web. This first coding lesson keeps the idea simple: store a message, calculate a number, and show both on the page.

Example

javascript
const message = "JavaScript runs in the browser";
const total = 5 * 3 + 2;
console.log(message, total);

Your Task

  1. Create introMessage with the text "JavaScript rocks!" and introNumber with the result of (5 * 3) + 2.
  2. Display JavaScript rocks! | 17 in #output.
Hint 1
1 / 2
HINT 1

Store text in introMessage and the calculation result in introNumber.

Loading editor…
READY
intercourses
javascript