---
title: "Discussion on \"JavaScript 常见隐式类型转换问题（持续更新\" | Hashnode"
description: "Discussion on \"JavaScript 常见隐式类型转换问题（持续更新\". 运算符\n运算符执行优先级 MDN\n1.大小比较运算符\n1 < 3 < 2 // true\n// 转化\n(1 < 3) < 2\nNumber((1 < 3)) < 2\n1 < 2 \n// 输出\ntrue\n\n2.取整\nparseInt \nparseInt(string, radix)   解析一个字符串并返回指定基数的十进制整数， radix 是2-36之间的整数，表示被解析字符串的基数。\nparseInt(9999999999999999999999) === 1 \n// 转化\nparseInt(..."
url: "https://hashnode.com/posts/javascript/624ff48e75dccb6f3431b865"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript 常见隐式类型转换问题（持续更新](https://blog.lolis.top/javascript?utm_source=hashnode&utm_medium=feed)

运算符 运算符执行优先级 MDN 1.大小比较运算符 1 < 3 < 2 // true // 转化 (1 < 3) < 2 Number((1 < 3)) < 2 1 < 2 // 输出 true 2.取整 parseInt parseInt(string, radix) 解析一个字符串并返回指定基数的十进制整数， radix 是2-36之间的整数，表示被解析字符串的基数。 parseInt(9999999999999999999999) === 1 // 转化 parseInt(...

Apr 8, 2022 · 1 min read · blog.lolis.top  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[@lolis](https://hashnode.com/@lolis)

  
[View profile](https://hashnode.com/@lolis)

share something

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
