You can use console.log() to print stuff. The objective of this task is to show you a simple implementation of the Façade Pattern.
Façade Pattern
It gives an interface to the user to interact with the system without having to understand the complexities in the system.
In this case, when you wrap console.log() inside a function, you can easily change the way things are printed if you ever wanted to do that.
Example:
function print(input) {
console.log(input);
}
You can use
console.log()to print stuff. The objective of this task is to show you a simple implementation of the Façade Pattern.In this case, when you wrap
console.log()inside a function, you can easily change the way things are printed if you ever wanted to do that.Example: