Greetings! I’m a 26-year-old front-end development enthusiast from Ukraine. I’m currently diving deeper into web development and really enjoying it. With a strong foundation in JavaScript, HTML, and CSS, I’m excited to create stunning and interactive websites.
This code is taken from Codewars. Function likes returns text depending on the number of names in the names array:
function likes(names) {
if (names.length === 0) {
return "no one likes this";
} else if (names.length === 1) {
return `${names[0]} likes this`;
} else if (names.length === 2) {
return `${names[0]} and ${names[1]} like this`;
} else if (names.length === 3) {
return `${names[0]}, ${names[1]} and ${names[2]} like this`;
} else {
return `${names[0]}, ${names[1]} and ${names.length - 2} others like this`;
}
}
Lviv Polytechnic National University, Civil Building and Environmental Engineering. Master’s degree.
September 2016 - January 2021 | Lviv, Ukraine |
I am passionate about web-development and committed to improving my skills in this area. My background in engineering has given me a strong foundation in technology, adaptability, and communication. I am excited to bring my skills and dedication to a dynamic organization in the web development field.