码迷,mamicode.com
首页 > 其他好文 > 详细

type cast & escape

时间:2020-12-24 12:30:32      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:style   pre   font   define   cas   lse   false   als   nbsp   

 

 

/// 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‘)

 

type cast & escape

标签:style   pre   font   define   cas   lse   false   als   nbsp   

原文地址:https://www.cnblogs.com/dissipate/p/14161573.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!