Create a string, then create a new buffer from that string, slice it, and convert it back to a string to see 'Biden' in the console.
What is buffer?
Create and slice
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
let slicedBuffer = buffer.slice(4,9);
let buffer = Buffer.from(stringForBuffer);
console.log(slicedBuffer.toString());
let stringForBuffer = 'Joe Biden'
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.