ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 178 - Certified JavaScript Developer I discussion

Report
Export

A developer is setting up a Node,js server and is creating a script at the root of the source code, index,js, that will start the server when executed. The developer declares a variable that needs the folder location that the code executes from.

Which global variable can be used in the script?

A.
window.location
Answers
A.
window.location
B.
_filename
Answers
B.
_filename
C.
_dirname
Answers
C.
_dirname
D.
this.path
Answers
D.
this.path
Suggested answer: B
asked 23/09/2024
ONWUDIWE NYENKE
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first