Avatar picture

Andrei Ivanov

Environmental researcher

Professional summary

Environmental researcher with a background in sustainability and ecological data analysis. Currently developing skills in JavaScript, HTML, and CSS to create interactive tools and web-based platforms for science communication and public outreach.

Professional experience

Institute of Ecology and Sustainable Development, Bishkek
Research Associate, September 2014 – Present

Education

Kyrgyz National University
Master of Environmental Science, 2012–2014

Kyrgyz Agrarian University
Bachelor of Ecology and Environmental Management, 2007–2011

Code example

Dot Calculator task from CODEWARS: you have to write a calculator that receives strings for input. The dots will represent the number in the equation. There will be dots on one side, an operator, and dots again after the operator. The dots and the operator will be separated by one space.

              
  function dotCalculator(equation) {
    let result = '';
    let a = 0;
    let b = 0;
    let sum = 0;

    for (i = 0; equation[i] !== ' '; i++) a++;

    for (i = equation.length - 1; equation[i] !== ' '; i--) b++;

    for (i = 0; i < (a + 2); i++) {
      if (equation[i] === '+') {
        sum = a + b;
      } else if (equation[i] === '-') {
        sum = a - b;
      } else if (equation[i] === '*') {
        sum = a * b;
      } else if (equation[i] === '/') {
        sum = Math.floor(a / b);
      } else {
        sum = 0;
      }
    }

    result = '.'.repeat(sum);
    return result;
  }