Assignment 1
Assignment 1
Print a sentence
combining those variables
2. Assign the value 10 to a variable. Then multiply that variable by itself and store the result
in another variable. Print the final value.
console.log(squared);
3. Write code to check if the character stored in a variable is uppercase or lowercase. Print
"uppercase" or "lowercase" accordingly. (Hint: Use character codes)
const char = 'A'; // Change this to the character you want to check
4. Declare two variables with numeric values. Add them together and print the sum. Then,
subtract the smaller number from the larger number and store the difference in a new
variable. Print the difference.