We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60f2cf6 commit 909a41eCopy full SHA for 909a41e
prep/example2.js
@@ -0,0 +1,11 @@
1
+function capitaliseFirstLetter(name) {
2
+ return (name[0].toUpperCase() + name.substring(1));
3
+}
4
+
5
+function createGreeting(name) {
6
+ const result = capitaliseFirstLetter(name);
7
+ return `Welcome ${result}`;
8
9
10
+const greeting = createGreeting("barath");
11
+console.log(greeting);
0 commit comments