Skip to content

Commit 8fdcd59

Browse files
committed
remove repetative content
1 parent bd6fb9a commit 8fdcd59

File tree

1 file changed

+5
-40
lines changed

1 file changed

+5
-40
lines changed

en/interview-questions/basic-level.md

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -798,46 +798,6 @@ class Person {
798798
var object = new Person("Sudheer");
799799
```
800800

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.
841801

842802
## 6.Miscellaneous
843803

@@ -886,6 +846,11 @@ JavaScript is an interpreted language, not a compiled language. An interpreter i
886846
1) It is an expression method in JavaScript that is also used to search a string with a specific pattern or text.
887847
2) Once it has been found, the pattern will return the Boolean value 'true', else it returns ‘false’.
888848

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.
889854

890855
## 7.JSON
891856

0 commit comments

Comments
 (0)