Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -39,6 +39,8 @@
|33 | [replaceAll](#replaceAll)|
|34 | [Required Function Params](#Required-Function-Params)|
|35 | [Get input value as a number](#Get-input-value-as-a-number)|
|36 | [Creating a function using Function constructor](#create-a-function-using-function-constructor)|




Expand DownExpand Up@@ -753,4 +755,16 @@ function checkMyType(event){

}

```

**[⬆ Back to Top](#table-of-contents)**
### Create a function using Function constructor
```javascript
function bar(){
return new Function('return "x"');
};
var x = bar();
x();//returns x


```