When writing, you should probably not write the same variable name, that is, the local variable and the global variable may have the same name
However, when both are variables in the same region, such as all global variables
font> other languages probably report errors, but JS is too tolerant. It’s a little difficult to report errors
var t={
u:"syyys"
}
var t="ss";
Now the second is equivalent to
t="ss";
Similar Posts:
- Loading local data is disabled; this must be enabled on both the client and server sides
- [Solved] jenkins checkstyle: local variable hides a field
- shadows name ‘xxxx’ from outer scope
- The ‘INFORMATION_SCHEMA.GLOBAL_STATUS’ feature is disabled; see the documentation for …
- nginx using uninitialized “XXXX” variable while logging request
- [Solved] UnboundLocalError: local variable x referenced before assignment
- [Solved] MYSQL Error 1040 (HY000): too many connections
- After the JVM is started, setting the system property file.encoding again cannot affect the default encoding of the system & sun.jnu.encoding
- [Solved] MySQL Error: ERROR 1615 (HY000): Prepared statement needs to be re-prepared
- AWS S3 CLI – Could not connect to the endpoint URL