Holen Sie sich X -Zeichen von String JavaScript

const result = 'Hiya how are you'.substring(0,8);
console.log(result);
console.log(result.length);
 Run code snippet
code fighter