Skip to content

Commit

Permalink
add TypeScript/sirawt-suk.ts (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirawit-suk authored Oct 23, 2022
1 parent 41d4681 commit 185dac3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TypeScript/sirawit-suk.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//Run code on website https://www.typescriptlang.org/play?#code/PTBKFcDsAIGMHsAmBTa8YHdkCMDOBLAF1QFgAocgG2ULngDN7lkAuaXQgJ30gHNoAvNABEAYQZNkwgNxUadFIOgBtAHTrIyDNADKNABQJGzAJQBdVQCt4PfcOEnVnZAAdKAQ1jI79YQBphRAdZCjIESFx4alVKeF5DJGQTIA

let coffee: string = "Coffee";
let code = [...new Set(coffee)].join("").replace("f","d");

console.log(code)

0 comments on commit 185dac3

Please sign in to comment.