📜  将属性添加到字符串 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:21.988000             🧑  作者: Mango

代码示例1
const s = 'Hello world!'
  s.user = 'Jack';     // no error if used without 'use-strict'

  console.log(s.user); // undefined