Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Dealing with Numbers | Getting Started
Introduction to JavaScript
course content

Kursinnehåll

Introduction to JavaScript

Introduction to JavaScript

1. Getting Started
3. Conditional Statements
4. Mastering Functions
5. Exploring Arrays
6. Discovering Loops

book
Dealing with Numbers

Summary

  • Textual data is always enclosed in single or double quotation marks.
    For example: 'Hello World' or "Hello World" — both represent valid textual data;

  • There are two different types of numbers in JavaScript:

    • Integers;

    • Floating-point numbers;

  • Floating-point numbers (also known as Floats) are numerical values that have a decimal part.
    Examples: 1.234, 24.56, 3.1415, etc;

  • Negative numbers can be expressed by adding a minus (-) sign before the number. Examples: -27, -3.14, -123, etc;

  • Arithmetic operations can be performed on numbers using the following operators:
    +, -, *, /, and **;

  • The order of arithmetic operations follows the basic rule of arithmetic (BODMAS or PEMDAS rules).

12345678910111213
// Integer console.log('Integer:', 42); // Floating-Point Number console.log('Floating-Point:', 3.14); // Negative Number console.log('Negative:', -27); // Arithmetic Operations console.log('Sum:', 42 + 3.14); console.log('Product:', 42 * -27);
copy

1. Which of the following is the correct way to represent textual data?

2. Which of the following is NOT a valid number type?

3. Which of the following represents a Floating-Point Number?

4. Which of the following represents a negative number?

5. How would you multiply two numbers?

question mark

Which of the following is the correct way to represent textual data?

Select the correct answer

question mark

Which of the following is NOT a valid number type?

Select the correct answer

question mark

Which of the following represents a Floating-Point Number?

Select the correct answer

question mark

Which of the following represents a negative number?

Select the correct answer

question mark

How would you multiply two numbers?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

course content

Kursinnehåll

Introduction to JavaScript

Introduction to JavaScript

1. Getting Started
3. Conditional Statements
4. Mastering Functions
5. Exploring Arrays
6. Discovering Loops

book
Dealing with Numbers

Summary

  • Textual data is always enclosed in single or double quotation marks.
    For example: 'Hello World' or "Hello World" — both represent valid textual data;

  • There are two different types of numbers in JavaScript:

    • Integers;

    • Floating-point numbers;

  • Floating-point numbers (also known as Floats) are numerical values that have a decimal part.
    Examples: 1.234, 24.56, 3.1415, etc;

  • Negative numbers can be expressed by adding a minus (-) sign before the number. Examples: -27, -3.14, -123, etc;

  • Arithmetic operations can be performed on numbers using the following operators:
    +, -, *, /, and **;

  • The order of arithmetic operations follows the basic rule of arithmetic (BODMAS or PEMDAS rules).

12345678910111213
// Integer console.log('Integer:', 42); // Floating-Point Number console.log('Floating-Point:', 3.14); // Negative Number console.log('Negative:', -27); // Arithmetic Operations console.log('Sum:', 42 + 3.14); console.log('Product:', 42 * -27);
copy

1. Which of the following is the correct way to represent textual data?

2. Which of the following is NOT a valid number type?

3. Which of the following represents a Floating-Point Number?

4. Which of the following represents a negative number?

5. How would you multiply two numbers?

question mark

Which of the following is the correct way to represent textual data?

Select the correct answer

question mark

Which of the following is NOT a valid number type?

Select the correct answer

question mark

Which of the following represents a Floating-Point Number?

Select the correct answer

question mark

Which of the following represents a negative number?

Select the correct answer

question mark

How would you multiply two numbers?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
Vi beklagar att något gick fel. Vad hände?
some-alt