StackOverflow Questions for Tag: javascript-function-declaration

Ashfame
Ashfame

Reputation: 1769

Why is declaring a function at global scope not equivalent to assigning a function to a global-scope binding?

Score: 4

Views: 228

Answers: 3

Read More
DarkSun
DarkSun

Reputation: 449

Why is it possible to assign to properties of a function before its declaration?

Score: 1

Views: 51

Answers: 1

Read More
glaz666
glaz666

Reputation: 8731

Which is preferred: inline function expressions or stand-alone function declarations?

Score: 41

Views: 97586

Answers: 13

Read More
No Tools No Craft
No Tools No Craft

Reputation: 193

Cypress Error: 'cy.within() can only be called on a single element'

Score: 1

Views: 88

Answers: 3

Read More
Baba
Baba

Reputation: 13

Why order of sloppy-mode function statement in block affects global variable differently?

Score: 0

Views: 42

Answers: 1

Read More
emjKamara
emjKamara

Reputation: 31

Can some please explain to me the difference between the function keyword and const in declaring a function

Score: -2

Views: 89

Answers: 2

Read More
alstorx
alstorx

Reputation: 111

JavaScript Immediately Invoked Function - Distinguishing Between JavaScript Function Expressions and Declarations

Score: 1

Views: 36

Answers: 0

Read More
Priyank
Priyank

Reputation: 3868

Why do function declarations get hoisted and function expressions don't?

Score: 0

Views: 3431

Answers: 1

Read More
151SoBad
151SoBad

Reputation: 125

Function declarations precedence/overwriting variable declarations? Hoisting? Why?

Score: 1

Views: 442

Answers: 2

Read More
rustyengineer
rustyengineer

Reputation: 353

Is it possible to have parameters for anonymous function?

Score: 1

Views: 56

Answers: 2

Read More
JeremiahB
JeremiahB

Reputation: 916

Does assigning to a function overwrite the function or create an implicit global?

Score: 0

Views: 39

Answers: 2

Read More
Bail3y
Bail3y

Reputation: 51

Does a function's name act as a variable?

Score: 1

Views: 143

Answers: 1

Read More
Brummy
Brummy

Reputation: 193

Javascript: Global Context and Function Context Declarations

Score: 0

Views: 424

Answers: 3

Read More
Aleksei Maide
Aleksei Maide

Reputation: 1855

Are all functions inside of an IIFE expressions?

Score: -1

Views: 91

Answers: 1

Read More
Marymon
Marymon

Reputation: 247

Javascript function declaration with same arguments

Score: 13

Views: 10648

Answers: 4

Read More
jbyrd
jbyrd

Reputation: 5615

Why doesn't the location of a function expression matter in node js?

Score: 3

Views: 125

Answers: 1

Read More
user4495161
user4495161

Reputation:

JS Function declarations should not be placed in block

Score: 0

Views: 1136

Answers: 1

Read More
guagay_wk
guagay_wk

Reputation: 28088

What are good situations to use function expression instead of function declaration?

Score: 1

Views: 64

Answers: 1

Read More
Wingblade
Wingblade

Reputation: 10103

Function declaration vs expression from a performance point of view?

Score: 1

Views: 1005

Answers: 2

Read More
Viacheslav Kondratiuk
Viacheslav Kondratiuk

Reputation: 8889

JavaScript: Change function declarations to expressions at legacy code

Score: 1

Views: 162

Answers: 1

Read More
PreviousPage 1Next