Course
summary


    0 chapters available

Loading...

Make your website interactive with JavaScript

Difficulty: Beginner ● Progress: 0 / 0 modules completed

Text functions

For strings, we'll first learn how to modify the "case" ("text-case" in English), in other words whether the text has uppercase letters or not:

const name = "margaret dewit";
const email = "M.DEWIT@EXAMPLE.COM";

// Convert text to uppercase with toUpperCase()
console.log(name.toUpperCase());

// Convert text to lowercase with toLowerCase()
console.log(email.toLowerCase());

You need a free account to read this module