Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 452 Bytes

Logging.md

File metadata and controls

14 lines (10 loc) · 452 Bytes

Logging

Printing to the JavaScript console.

Enter the following code commands in a repl.it or a JavaScript editor of your choice.

console.log('Welcome to JavaScript'); // This will print the following message to the console:  "Welcome to JavaScript"
const name = 'Alex'; // name cannot be mutated (changed) 
console.log('The name you entered is %s', name); // The name you entered is Alex