Get primitive properties on a number / string etc using proto

PHOTO EMBED

Sat Apr 20 2024 23:30:26 GMT+0000 (Coordinated Universal Time)

Saved by @davidmchale #properties #primitive

const s = 'Hello World';

console.log(s);
console.log(s.__proto__); // view in console to get all properties to use on a string

// or use
console.dir(s)
content_copyCOPY