I'm new to Express, from the API docs it seems that we have two methods app.get()for getting the value of a variable, the other of us are familiar with HTTP GET request processing.
app.get()
What is the difference between the two? How does Express know which one we want? Are they really the same function?
This is the same function. expressdecides what to do based on the call.
express
The code get()starts with:
get()
if (1 == arguments.length) ...
get(name), set(); , .
get(name)
set()
. 1 == arguments.length 1, , .
1 == arguments.length
set() get() .
Source: https://habr.com/ru/post/1529261/More articles:Cross browser canvas using nodeJS for function not found signature - javascriptPython way to replace real return values and implement functions with mock - pythonСопряжение Javascript, когда push находится в обработчике событий - javascriptWhat exactly does UNSAFE.compareAndSwapObject do - javahighlightjs with html code - javascript"Attempting to read or write protected memory." when adding an item to the list <> - c #Start setting for activity alias - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1529264/how-to-check-if-a-migration-needs-to-be-ran-or-did-run-with-fluent-migrator&usg=ALkJrhg25gvTdZqniMAa3gi3905PjbNu5AHow to write a self-replaceable / update binary? - c ++Overriding Spree Assets - cssAll Articles