Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Typing Test
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
String to MD5 Hash Generator
String to Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase Converter
String to Uppercase Converter
String Word Count
Empty Lines Remover
HTML Tags Remover
Binary Data to Hex Converter
Hex Encoded Binary String Decoder
Rot13 to Text Converter
String to Binary Converter
Duplicate Lines Remover
Code Formatters
JavaScript Formatter
CSS Formatter
HTML Formatter
Json Formatter
PHP Formatter
CSS Maker
CSS Maker
CSS Maker Text Shadow
CSS Maker Text Rotation
CSS Maker Outline
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Change theme
Dark
Light
System
Quizzez
HTML Basic
CSS Basic
Javascript Basic
PHP basic
ES6 Basic
TypeScript Basic
Angular Basic
React Basic
Sass Basic
Vue.js Basic
Git Basic
SQL Basic
Quiz Javascript Basic - What is the function of the below code snippet?
var scope = "global scope";
function checkscope() {
var scope = "local scope";
function func() {
return scope;
}
return func;
}
Returns value null aaa
Returns exception aaa
Returns the value in scope aaa
None of the mentioned aaa
Answer
Your answer is correct
Your answer is incorrect
Start Quiz
Sorry about that
How can we improve it?
Submit
Thanks for your feedback!
Thanks for your feedback!
Do you find this helpful?
Yes
No
Related Questions
Inside which element do you put JavaScript?
Which is the correct way to write a comment in JavaScript?
Which one of the following is correct?
Which array method sorts the elements of an array?
Which function is used to load the next URL in the history list?
How do you open a confirm window in JavaScript?
How do you get cookies in JavaScript?
Which of the following events occurs when the user clicks on an HTML element?
How do you get the DOM element with id in JavaScript?
How do you create a JavaScript array?
What is the function of the below code snippet?
Which is undefined variable?
Which of the following is the correct way to write an array?
Which of the following is the correct way to write “Welcome to W3docs” on the web page?
The pop() method removes the last item from an array and returns a new array.
What is called the functions with no return value?
What is a closure?
What should be done for lexical scoping implementation?
Which of the following options is the opposite of the lexical scoping?
What will be the output of the following statement?