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 @   ascertain  阅读(59)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示