AAAbdullah Ahadiinabdullah-ahadi.hashnode.dev路Oct 9, 2021 路 3 min readJavaScript promisesWhat is a JavaScript Promise? JavaScript promises are what their name says. You use them to make a promise to do something, usually asynchronously. When the task completes, you either fulfill 馃槑 your promise or fail 馃槪 to do so. A Promise is a constr...00
AAAbdullah Ahadiinabdullah-ahadi.hashnode.dev路Sep 23, 2021 路 1 min readHow to find the last character of a string in JavaScript?In order to get the last letter of a string in JavaScript, you can subtract one from the string's length. var firstName = "julia"; var lastLetter = firstname[firstName.length - 1]; // output: a00