Skip to content

Instantly share code, notes, and snippets.

@khg0712
Created May 19, 2018 16:32
Show Gist options
  • Save khg0712/93ce79149217e3e3dd603c4bc314caab to your computer and use it in GitHub Desktop.
Save khg0712/93ce79149217e3e3dd603c4bc314caab to your computer and use it in GitHub Desktop.
Function 생성자를 통한 함수 생성 예시
var add = new Function('a','b','return a + b');
add(1,2);//3 반환
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment