Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
BigInt 3/3 | Data Types and Variables
Introduction to JavaScript (staging)
course content

Зміст курсу

Introduction to JavaScript (staging)

Introduction to JavaScript (staging)

1. Introduction
2. JavaScript syntax
3. Data Types and Variables

bookBigInt 3/3

Comparison with BigInt

We can use the comparison operators like greater than (<) or less than (>) with BigInt numbers just like we do with the numbers, for example.

12
console.log(2n > 1n); console.log(5n < 2);
copy

Завдання

You are given two BigInt in the following code you have to compare both of them by > and show the result on the console whether revenueOfBankA is greater than revenueOfBankB.

Note:
Comparison operators will be covered in detail in the upcoming sections, but for now, just keep in mind that they are used to compare values or variables. We will work in detail with all kinds of the operator in the upcoming sections.

Summary

  • BigInt is a data type in JavaScript where we can have integers of arbitrary lengths.
  • We can use math operators with BigInt`just like numbers.
  • We can use the comparison operators < and > with the BigInt numbers just like with the numbers.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 26
toggle bottom row

bookBigInt 3/3

Comparison with BigInt

We can use the comparison operators like greater than (<) or less than (>) with BigInt numbers just like we do with the numbers, for example.

12
console.log(2n > 1n); console.log(5n < 2);
copy

Завдання

You are given two BigInt in the following code you have to compare both of them by > and show the result on the console whether revenueOfBankA is greater than revenueOfBankB.

Note:
Comparison operators will be covered in detail in the upcoming sections, but for now, just keep in mind that they are used to compare values or variables. We will work in detail with all kinds of the operator in the upcoming sections.

Summary

  • BigInt is a data type in JavaScript where we can have integers of arbitrary lengths.
  • We can use math operators with BigInt`just like numbers.
  • We can use the comparison operators < and > with the BigInt numbers just like with the numbers.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 26
toggle bottom row

bookBigInt 3/3

Comparison with BigInt

We can use the comparison operators like greater than (<) or less than (>) with BigInt numbers just like we do with the numbers, for example.

12
console.log(2n > 1n); console.log(5n < 2);
copy

Завдання

You are given two BigInt in the following code you have to compare both of them by > and show the result on the console whether revenueOfBankA is greater than revenueOfBankB.

Note:
Comparison operators will be covered in detail in the upcoming sections, but for now, just keep in mind that they are used to compare values or variables. We will work in detail with all kinds of the operator in the upcoming sections.

Summary

  • BigInt is a data type in JavaScript where we can have integers of arbitrary lengths.
  • We can use math operators with BigInt`just like numbers.
  • We can use the comparison operators < and > with the BigInt numbers just like with the numbers.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Comparison with BigInt

We can use the comparison operators like greater than (<) or less than (>) with BigInt numbers just like we do with the numbers, for example.

12
console.log(2n > 1n); console.log(5n < 2);
copy

Завдання

You are given two BigInt in the following code you have to compare both of them by > and show the result on the console whether revenueOfBankA is greater than revenueOfBankB.

Note:
Comparison operators will be covered in detail in the upcoming sections, but for now, just keep in mind that they are used to compare values or variables. We will work in detail with all kinds of the operator in the upcoming sections.

Summary

  • BigInt is a data type in JavaScript where we can have integers of arbitrary lengths.
  • We can use math operators with BigInt`just like numbers.
  • We can use the comparison operators < and > with the BigInt numbers just like with the numbers.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 3. Розділ 26
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
some-alt