Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions unicode.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,20 @@ Assign the result to a variable named swappedString.
//Starter Code
// Task 1
let inputString1 = "Code";
let firstCodePoint; // Your code here
let thirdCodePoint; // Your code here
let firstCodePoint; // let firstCodePoint = inputString.charCodeAt(0); // Unicode of 'C'

let thirdCodePoint; // let thirdCodePoint = inputString.charCodeAt(2); // Unicode of 'd'

// Task 2
let wordFromCodePoints; // Your code here
let wordFromCodePoints; // let wordFromCodePoints = String.fromCharCode(72, 101, 108, 108);

// Task 3
let inputString2 = "Launch";
let swappedString; // Your code here
let swappedString; //let swapString = "Launch";
//let firstCharCode = swapString.charCodeAt(0); // Unicode of 'L'
//let lastCharCode = swapString.charCodeAt(swapString.length - 1); // Unicode of 'h'

//let swappedString = String.fromCharCode(lastCharCode) + swapString.slice(1, -1) + String.fromCharCode(firstCharCode);

// Log all results
console.log({
Expand Down