CONTACTS
ABOUT ME
My name's Andrej and I from Minsk, Belarus. I like solving interesting tasks and finding the answers for difficult questions myself, however do not afraid to ask for help or an advice. In all time of studying I`ve got two main problems, sometimes my code isn`t working and I don`t know why; and sometimes my code is working and I don`t know why.
MY SKILLS
-
HTML/CSS/SASS
-
JavaScript
-
React/React Hooks
-
git/GitHub
CODE EXAMPLE
This is a function for getting some data from API and working with it.
const getCharacterByName = async (name) => {
const res = await request(`${_apiBase}characters?name=${name}&${_apiKey}`);
return res["data"]["results"].length > 0 ? _transformCharacter(res["data"]["results"][0], false) : [];
};
const _transformCharacter = (character, shortDescription = true) => {
return {
id: character.id,
name: shortDescription ? doShortDescription(character.name, 20) : character.name,
thumbnail: (character.thumbnail.path + `.${character.thumbnail.extension}`),
description: (character.description === "" ? "Sorry, there is not description." :
shortDescription ? doShortDescription(character.description, 150) : character.description),
homeLink: character.urls[0].url,
wikiLink: character.urls[1].url,
comics: doSpliceOfComics(character.comics.items, 10)
};
};
LANGUAGES
- My Englis is in the range of A2 PRE-INTERMEDIATE to B1 INTERMEDIATE; however, according to the Efset online-test it is from B1 INTERMEDIATE to B2 UPPER INTERMEDIATE
- Russian - Native