This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Let's define an original function | |
const my_func = (param1, param2) => { | |
}; | |
const result = my_func(1, 2); | |
// Ohh, I want to update my orginal function with additional fields, but won't break backwards compatibility | |
const my_func = (param1, param2, {onClick} = {}) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Hallo</title> | |
</head> | |
<body> | |
<h1>This is a first test</h1> | |
</body> | |
</html> |