How JavaScript is rounded up
Editor to share with you how to adjust the JavaScript, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Rounding
A bunch of rounding functions in Math will not be mentioned here, mainly to mention some ingenious rounding methods.
Console.log; / / > 3console.log; / / >-2console.log (6.18 | 0); / / > 6console.log (- 3.6 | 0); / / >-3console.log (9.9 > > 0); / / > 9console.log (- 2.1 > > 0) / / = >-2 node / superagent is a very practical node module for sending http requests, which is used to process the error codes. | var type = status / 100 | 0 / type;res.ok / classres.status = status;res.statusType = type;// basicsres.info = 1 = = type;res.ok = 2 = = type;res.clientError = 4 = = type;res.serverError = 5 = type;res.error = 4 = = type | | 5 = = type The above is all the contents of this article "how to integrate JavaScript". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!