let bo = new Boolean(true)
console.log(typeof bo)
console.log(typeof bo.valueOf(), typeof bo.toString())
let bo1 = true
console.log(typeof bo1)
let num = new Number(10)
console.log(typeof num)
console.log(typeof num.valueOf(), typeof num.toString())
let num1 = 10
console.log(typeof num1)
let str = new String('helloworld')
console.log(typeof str)
console.log(typeof str.valueOf(), typeof str.toString())
let str1 = 'helloworld'
console.log(typeof str1)
console.log(str1.slice(1, 4))
console.log(str1.substring(1, 4))
console.log(str1.substr(1, 4))
var text = "cat, bat, sat, fat";
text.replace('at', 'end')
console.log(text)
text.replace(/at/g, 'end')
console.log(text)
alert(String.fromCharCode(104, 101, 108, 108, 111));