Skip to content

Instantly share code, notes, and snippets.

@evgeniyworkbel
Last active November 11, 2021 08:18
Show Gist options
  • Save evgeniyworkbel/0b41ae81cf4c5fd99aea0ccee58cfac6 to your computer and use it in GitHub Desktop.
Save evgeniyworkbel/0b41ae81cf4c5fd99aea0ccee58cfac6 to your computer and use it in GitHub Desktop.
Подготов. курс JS (code-basics.ru)
const one = 'Naharis';
const two = 'Mormont';
const three = 'Sand';
//мое первое решение чез извлечение букв из строки
// BEGIN (write your solution here)
console.log(one[2] + two[1] + three[3] + two[4] + two[2]);
// END
// мое второе решение (через интерполяцию)
// BEGIN
console.log(`${one[2]}${two[1]}${three[3]}${two[4]}${two[2]}`);
// END
const one = 'Naharis';
const two = 'Mormont';
const three = 'Sand';
// BEGIN
console.log(`${one[2]}${two[1]}${three[3]}${two[4]}${two[2]}`);
// END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment