Skip to content

    W3Schools Theme

    Theme
    Light Mode
    class Author {
    constructor(firstName, lastName, yearBorn) {
    this.firstName = firstName;
    this.lastName = lastName;
    this.yearBorn = yearBorn;
    }

    getFullName() {
    return this.firstName + ' ' + this.lastName;
    }
    }

    // Create a new Author
    const author = new Author('Douglas', 'Adams', 1952);
    author.firstName = 'Doug';

    // Prints "Doug Adams"
    const fullName = author.getFullName();
    console.log(fullName);
    Editable example
    Installed 1 timeLast updated Aug 13, 2023
    It is the theme used on W3Schools + Replit Dark theme put together.