You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/interview-questions/basic-level.md
+5-40Lines changed: 5 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -798,46 +798,6 @@ class Person {
798
798
var object =newPerson("Sudheer");
799
799
```
800
800
801
-
## 6.Miscellaneous
802
-
803
-
### 6.1. What is a strict mode in JavaScript ?
804
-
805
-
**Answer:**
806
-
807
-
Strict Mode is a new feature in ECMAScript 5 that allows you to place a program, or a function, in a "strict" operating context. This way it prevents certain actions from being taken and throws more exceptions. The literal expression "use strict"; instructs the browser to use the javascript code in the Strict mode.
808
-
809
-
### 6.2. What is null value in JavaScript ?
810
-
811
-
**Answer:**
812
-
813
-
The value null represents the intentional absence of any object value. It is one of JavaScript's primitive values. The type of null value is object. You can empty the variable by setting the value to null.
814
-
815
-
```js
816
-
var user =null;
817
-
console.log(typeof user); //object
818
-
```
819
-
820
-
### 6.3. What is eval in JavaScript ?
821
-
822
-
**Answer:**
823
-
824
-
The eval() function evaluates JavaScript code represented as a string. The string can be a JavaScript expression, variable, statement, or sequence of statements.
825
-
826
-
```js
827
-
console.log(eval("1 + 2")); // 3
828
-
```
829
-
830
-
### 6.4. Is JavaScript a compiled or interpreted language ?
831
-
832
-
**Answer:**
833
-
834
-
JavaScript is an interpreted language, not a compiled language. An interpreter in the browser reads over the JavaScript code, interprets each line, and runs it. Nowadays modern browsers use a technology known as Just-In-Time (JIT) compilation, which compiles JavaScript to executable bytecode just as it is about to run.
835
-
836
-
### 6.5. Is JavaScript a case-sensitive language ?
837
-
838
-
**Answer:**
839
-
840
-
Yes, JavaScript is a case sensitive language. The language keywords, variables, function & object names, and any other identifiers must always be typed with a consistent capitalization of letters.
841
801
842
802
## 6.Miscellaneous
843
803
@@ -886,6 +846,11 @@ JavaScript is an interpreted language, not a compiled language. An interpreter i
886
846
1) It is an expression method in JavaScript that is also used to search a string with a specific pattern or text.
887
847
2) Once it has been found, the pattern will return the Boolean value 'true', else it returns ‘false’.
888
848
849
+
### 6.6. Is JavaScript a case-sensitive language ?
850
+
851
+
**Answer:**
852
+
853
+
Yes, JavaScript is a case sensitive language. The language keywords, variables, function & object names, and any other identifiers must always be typed with a consistent capitalization of letters.
0 commit comments