js only first 50 letters

JavaScript
'Hiya how are you'.substring(0,50);
Source

Also in JavaScript: