Created
June 24, 2022 09:29
-
-
Save vamshi9666/e59622584edb7494f463f455c372336c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const techstackItems = [ | |
"JavaScript", | |
"TypeScript", | |
"Nodejs", | |
"Nextjs", | |
"Wordpress", | |
"React", | |
"ES6+", | |
"Angular", | |
"Angularjs", | |
"Puppetter", | |
"MongoDB", | |
"GraphQL", | |
"Python", | |
"ElasticSearch", | |
"Docker", | |
"Git", | |
"Websocket", | |
"Webpack", | |
"Rust", | |
"PHP", | |
"BigQuery", | |
]; | |
const totalLength = techstackItems.length; | |
const techstack = techstackItems.map((item, index) => { | |
const power = totalLength - index; | |
return [item, power]; | |
}); | |
const str = techstack | |
.map((item) => { | |
const [itemName, power] = item; | |
return `${power} ${itemName}`; | |
}) | |
.join("\n"); | |
console.log(str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment