About the function name of a named function expression

the front-end rookie asks everyone to help analyze this code:

 b = function a() {
    a = 10;
    console.log(a);
 }
 b();

Why does the a = 10 in the function not work?

Thank you!

Jul.30,2021

the name of the naming function expression NFE exists in an auxiliary special object (auxiliary special object) and is read-only, so modification in non-strict mode will silently fail. If this function runs in strict mode, it will report an error Uncaught TypeError: Assignment to constant variable.


in strict mode
Uncaught TypeError: Assignment to constant variable.
seems to be unmodifiable

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e6868c-44254.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e6868c-44254.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?