type cast & escape

 

 

/// fas
/**
 * fasf
 */

console.log(b=3+'uio',typeof(b))
console.log(b=null+'uio',typeof(b))
console.log(b=true+'uio',typeof(b))
console.log(b=false+'uio',typeof(b))
console.log(b=undefined+'uiop',typeof(b))

console.log(b=null+5,typeof(b))
console.log(b=undefined+6,typeof(b))
console.log(b=true+5,typeof(b))
console.log(b=false+6,typeof(b))

console.log(b = null + true, typeof (b))
console.log(b = null + false, typeof (b))
console.log(b = undefined + true, typeof (b))
console.log(b = undefined + false, typeof (b))
console.log(b = null & true, typeof (b))
console.log(b = undefined & true, typeof (b))
console.log(b = null | true, typeof (b))
console.log(b = null | false, typeof (b))

console.log(b = null && true, typeof (b))
console.log(b = false && null, typeof (b))
console.log(b = null || true, typeof (b))
console.log(b = false || null, typeof (b))
console.log(b=false && 'juioo',typeof(b))
console.log(b=null || 'uoo',typeof(b))

console.log(b=null+undefined,typeof(b))

 

let name='tom\''
var b=88
let c=`uio 
${name}, 
vbnm ${b}`
console.log(c)
console.log('\251')
console.log('\xa9')
console.log('\u00a9')

 

posted @ 2020-12-19 22:12  ascertain  阅读(58)  评论(0编辑  收藏  举报