Skip to content

Commit 59fa0b9

Browse files
i have added here new solve
1 parent f3cbff3 commit 59fa0b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+441
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* Use Map
2+
নিচের Arrow Function লিখো যা একটি নামের অ্যারে ইনপুট নেবে এবং প্রতিটি নামের প্রথম অক্ষর এবং নামের Length দেখাবে।
3+
const shortNames = ???; console.log(shortNames(["Alice", "Bob", "Charlie"])); // ["A(5)", "B(3)", "C(7)"]
4+
*/
5+
6+
const shortNames = (names) => {
7+
return names.map(nam => `${nam[0]}(${nam.length})`)
8+
}
9+
10+
console.log(shortNames(["Alice", "Bob", "Charlie"]))

0 commit comments

Comments
 (0)