This commit is contained in:
@@ -24,6 +24,16 @@
|
||||
</main>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
// Funktionsdefinition
|
||||
const logTransformName = (firstName, lastName) => {
|
||||
console.log(
|
||||
`${lastName.charAt(0).toUpperCase()}${lastName.substring(1).toLowerCase()}, ${firstName.charAt(0).toUpperCase()}.`,
|
||||
);
|
||||
};
|
||||
|
||||
logTransformName('Max', 'Mustermann');
|
||||
logTransformName('John', 'Wick');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user