Regarding the issue that as follows: let i = 011; console.log(i); // 9 But in strict mode, this approach breaks down: "use strict"; let i = 011; // Uncaught SyntaxError: Octal literals are not allowed in strict mode. console.log(i); This means that octal is not supported in strict mode. If you must use it, you can use a roundabout way to save the country: Set the octal data as a string, then convert it through "use strict"; let i = '011'; console.log(parseInt(i, 8)); // 9 This concludes the article on the issue of You may also be interested in:
|
<<: How to deploy Redis 6.x cluster through Docker
>>: Thoughts on truncation of multi-line text with a "show more" button
1: Throughput (Requests per second) A quantitativ...
Table of contents Preface React Functional Compon...
Refer to the tutorial on setting up FTP server in...
Recently, I have been learning to use nginx to pl...
This article describes MySQL 8.0 user and role ma...
1. Download and decompress 1. Introduction to Zoo...
This article example shares the specific code of ...
Table of contents What are Refs 1. String type Re...
In the previous article, we learned about the net...
Preface We know that index selection is the work ...
I have been working on a project recently - Budou...
The title images on Zhihu Discovery columns are g...
This article shares the specific code of JavaScri...
Table of contents Introduction to NIS Network env...
Table of contents 1. Installation and introductio...