JS_HOME_WORK/21-compare-variables/finish.js
2025-01-17 01:00:07 +01:00

18 lines
548 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** ЗАДАЧА 21 - Сравнение переменных
*
* 1. Сравните 2 переменные "myVariable1" и "myVariable2".
* Выведите в консоль "true", если значение "myVariable1" меньше или равно "myVariable2".
*
* 2. Преобразуйте обе переменные в числа перед сравнением.
*/
let myVariable1 = 10
let myVariable2 = '5'
// Напишите код здесь
myVariable1 = '20'
myVariable2 = 100
// Напишите код здесь