rsschool-cv

Ivan Klochkov

Frontend Developer


Contact information:

Phone: +8184260335
E-mail: klochkov.ivan.sergeevich@gmail.com
Linkedin: IvanKlochkov
Telegram: Dokivan
Discord: IvanDok13
GitHub: IvanDok13


About Me:


Languages and tools

                       


Code examples:

Is a number prime? Define a function that takes an integer argument and returns a logical value true or false depending on if the integer is a prime.

const isPrime = num => {
    for(let i = 2, s = Math.sqrt(num); i <= s; i++) {
        if(num % i === 0) return false;
    }
    return num > 1;
}

console.log(isPrime(1)) //false
console.log(isPrime(2)) //true
console.log(isPrime(-1)) //false

RGB To Hex Conversion The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being returned. Valid decimal values for RGB are 0 - 255. Any values that fall out of that range must be rounded to the closest valid value.

function rgb(r, g, b) {
  let str = '';
  if (r < 0) r = 0;
  if (g < 0) g = 0;
  if (b < 0) b = 0;
  if (r > 255) r = 255;
  if (g > 255) g = 255;
  if (b > 255) b = 255;
  str = `${('0' + r.toString(16)).slice(-2)}${('0' + g.toString(16)).slice(-2)}${('0' + b.toString(16)).slice(-2)}`
  return str.toUpperCase();
}

console.log(rgb(255, 255, 255)) //"FFFFFF"
console.log(rgb(255, 255, 300)) //"FFFFFF"
console.log(rgb(0, 0, 0)) //"000000"
console.log(rgb(148, 0, 211)) //"9400D3"

Projects

  1. Coffe-house
  2. Christmas-shop
  3. Pictures-slider
  4. Nonograms
  5. Video Player
  6. Library
  7. Car-Slider-Project
  8. Morse-decoder
  9. Drag-and-drop
  10. Traveling-site
  11. Hangman-game
  12. cssMemeSlider
  13. Image-gallery
  14. Simon-says
  15. Nonograms-game-old

Courses:

2024 JavaScript/Front-End 2023Q4 - The Rolling Scopes, JS developer
2022 JS/FE Pre-School 2023Q2 - The Rolling Scopes, JS developer
2022 Front-end developer - Hexlet, JavaScript front-end developer
2022 JavaScript Front-end developer - PASV, JavaScript Front-end developer
2021 HTML & CSS - Result School, layout designer
2010 PC systems engineer - “Informatics - Plus” LLC, PC systems engineer-operator


My CodeWarrior profile


Languages: