Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Strings 5/5 | 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

Strings 5/5

Changing Cases of String Variables

In JavaScript, we can convert lower-case string values to upper-case and vice versa. To convert lower-case string to upper-case we use the method toUpperCase() while the method toLowerCase() is for converting string into lower-case. Let’s look at an example.

12
console.log('JavaScript'.toUpperCase()); console.log('JavaScript'.toLowerCase());
copy

Завдання

The titles of the books are usually written in upper-case. In the code below, a variable named bookTitle with the value Think and grow rich has been given to you. Your task is to display the value of the above variable in the upper-case.

Завдання

The titles of the books are usually written in upper-case. In the code below, a variable named bookTitle with the value Think and grow rich has been given to you. Your task is to display the value of the above variable in the upper-case.

Summary:

  • In JavaScript, we can declare string variables in three ways, single-quotes, double-quotes, and backticks.
  • We can use different kinds of special characters like \n is a special character used for entering a new line.
  • To get a character at a position we , use: [] or .charAt().
  • The toLowerCase() and toUpperCase() are the methods for converting cases in JavaScript.

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

Все було зрозуміло?

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

Strings 5/5

Changing Cases of String Variables

In JavaScript, we can convert lower-case string values to upper-case and vice versa. To convert lower-case string to upper-case we use the method toUpperCase() while the method toLowerCase() is for converting string into lower-case. Let’s look at an example.

12
console.log('JavaScript'.toUpperCase()); console.log('JavaScript'.toLowerCase());
copy

Завдання

The titles of the books are usually written in upper-case. In the code below, a variable named bookTitle with the value Think and grow rich has been given to you. Your task is to display the value of the above variable in the upper-case.

Завдання

The titles of the books are usually written in upper-case. In the code below, a variable named bookTitle with the value Think and grow rich has been given to you. Your task is to display the value of the above variable in the upper-case.

Summary:

  • In JavaScript, we can declare string variables in three ways, single-quotes, double-quotes, and backticks.
  • We can use different kinds of special characters like \n is a special character used for entering a new line.
  • To get a character at a position we , use: [] or .charAt().
  • The toLowerCase() and toUpperCase() are the methods for converting cases in JavaScript.

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

Все було зрозуміло?

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

Strings 5/5

Changing Cases of String Variables

In JavaScript, we can convert lower-case string values to upper-case and vice versa. To convert lower-case string to upper-case we use the method toUpperCase() while the method toLowerCase() is for converting string into lower-case. Let’s look at an example.

12
console.log('JavaScript'.toUpperCase()); console.log('JavaScript'.toLowerCase());
copy

Завдання

The titles of the books are usually written in upper-case. In the code below, a variable named bookTitle with the value Think and grow rich has been given to you. Your task is to display the value of the above variable in the upper-case.

Завдання

The titles of the books are usually written in upper-case. In the code below, a variable named bookTitle with the value Think and grow rich has been given to you. Your task is to display the value of the above variable in the upper-case.

Summary:

  • In JavaScript, we can declare string variables in three ways, single-quotes, double-quotes, and backticks.
  • We can use different kinds of special characters like \n is a special character used for entering a new line.
  • To get a character at a position we , use: [] or .charAt().
  • The toLowerCase() and toUpperCase() are the methods for converting cases in JavaScript.

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

Все було зрозуміло?

Changing Cases of String Variables

In JavaScript, we can convert lower-case string values to upper-case and vice versa. To convert lower-case string to upper-case we use the method toUpperCase() while the method toLowerCase() is for converting string into lower-case. Let’s look at an example.

12
console.log('JavaScript'.toUpperCase()); console.log('JavaScript'.toLowerCase());
copy

Завдання

The titles of the books are usually written in upper-case. In the code below, a variable named bookTitle with the value Think and grow rich has been given to you. Your task is to display the value of the above variable in the upper-case.

Summary:

  • In JavaScript, we can declare string variables in three ways, single-quotes, double-quotes, and backticks.
  • We can use different kinds of special characters like \n is a special character used for entering a new line.
  • To get a character at a position we , use: [] or .charAt().
  • The toLowerCase() and toUpperCase() are the methods for converting cases in JavaScript.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 3. Розділ 23
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt