add property to string js code example
Example: add property to string js
const s = 'Hello world!'
s.user = 'Jack'; // no error if used without 'use-strict'
console.log(s.user); // undefined
const s = 'Hello world!'
s.user = 'Jack'; // no error if used without 'use-strict'
console.log(s.user); // undefined