forked from itscodenation/flw1-u1l3-23-24-student-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
operators.js
28 lines (16 loc) · 789 Bytes
/
operators.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Arithmetic Operations
// 1. Addition
// Create two variables, num1 and num2, and assign them any two numbers of your choice.
// Add the two numbers and store the result in a new variable called sum.
// Print the result using console.log().
// 2. Subtraction
// Subtract num2 from num1 and store the result in a new variable called difference.
// Print the result.
// 3. Multiplication
// Multiply num1 by num2 and store the result in a new variable called product.
// Print the result.
// String Operations
// 4. Concatenation with +
// Create two string variables, str1 and str2, and assign them any two strings of your choice.
// Concatenate (combine) the two strings using the + operator and store the result in a new variable called combinedString.
// Print the result.