Last active
November 11, 2021 08:18
-
-
Save evgeniyworkbel/0b41ae81cf4c5fd99aea0ccee58cfac6 to your computer and use it in GitHub Desktop.
Подготов. курс JS (code-basics.ru)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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