We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 683f762 commit 47a7fcfCopy full SHA for 47a7fcf
1 file changed
unicode.js
@@ -86,15 +86,18 @@ Assign the result to a variable named swappedString.
86
//Starter Code
87
// Task 1
88
let inputString1 = "Code";
89
-let firstCodePoint; // Your code here
90
-let thirdCodePoint; // Your code here
+let firstCodePoint = inputString1.charCodeAt(0);
+let thirdCodePoint = inputString1.charCodeAt(2);
91
92
// Task 2
93
-let wordFromCodePoints; // Your code here
+let wordFromCodePoints = String.fromCharCode(72, 101, 108, 108);
94
95
// Task 3
96
let inputString2 = "Launch";
97
-let swappedString; // Your code here
+let swappedString = String.fromCharCode(inputString2.charCodeAt(inputString2.length - 1)) +
98
+ inputString2.slice(1, -1) +
99
+ String.fromCharCode(inputString2.charCodeAt(0));
100
+
101
102
// Log all results
103
console.log({
0 commit comments