In JavaScript a number with leading zeros is considered to be in Octal system and it is read as octal value.
Ex:"0025" is read as "21".
In order to have its value preserved we should pass it as string.
Ex: myfunction(x){
alert(x);
}
we should call function as myfunction("0026")
Subscribe to:
Post Comments (Atom)
Call a function in child component from parent component in React
Consider the following parent component class Parent extends React.Component { constructor(props) { super(props); thi...
-
Common Language Runtime or CLR is the run-time execution environment of .Net Framework. Converting MS-IL into platform or OS specific code ...
-
An object is an entity that has Properties for identifying State, Methods for behavior, Events for depicting the change of State. Data ass...
-
this error occurs when we are using a port and try to bind the same port again. I have this error when I was using react and using 9080 por...
No comments:
Post a Comment