I'm starting to learn JavaScript; these are my notes. Some parts may be incorrect, please excuse me. Writing them down mainly to help me review later.
prompt pops up a fill-in dialog where you can enter content information.
alert pops up an alert box, displaying information to the user
console.log: console log (console is the console, log is the log)
Essence: A variable is a container for storing data.
Variable names: When there are too many variables to find, you need to name the variables.
Using variables:

Meaning: When a variable has new data, it replaces the old data. The last assignment takes precedence.

bl.png
1: Only declare, do not assign. The output is undefined (the browser doesn't know exactly what value it is.)
2: Do not declare, do not assign; output to the console. The result is an error.
3: Only assign, not declare; the console can display it, but it's not recommended.
bl3.png
1: Letters, digits, and underscores. (num01, _num, usrName)
2: Cannot start with a digit, for example (var 18age) will throw an error.
3: Cannot use keywords as variable names, for example (var var)
4: Variable names should be meaningful. Youdao Translation
5: CamelCase naming. The first letter is lowercase, the first letter of the following words is uppercase. (myFirstName)
6: Case is strictly case-sensitive.
