dfkaye.github.io

~ building & testing JavaScript, CSS, HTML ~

Home Archives
Mar 14 2014

JavaScript's eval() and Function() constructor

In a future post, I argue that the Function constructor in JavaScript can be used for good, solving specific problems.

Preparatory to that, in this post, I examine the eval function and the Function constructor to highlight their similarities as well as their subtle differences, and how to use them without problems.

Read More

Share
  • Function
  • JavaScript
  • eval
  • metaprogramming
  • performance

Tags

  • CSS1
  • CoffeeScript1
  • Function1
  • JavaScript5
  • TDD2
  • boilerplate1
  • constructor1
  • es-discuss1
  • eval1
  • gulp1
  • hello1
  • hexo1
  • inheritance1
  • metaprogramming1
  • multiline1
  • performance1
  • pre-processors1
  • promise1
  • rawgit1
  • rawgithub1
  • simple2
  • testem1
  • travis1
  • uglify1
  • zen of python1

Tag Cloud

CSSCoffeeScriptFunctionJavaScriptTDDboilerplateconstructores-discussevalgulphellohexoinheritancemetaprogrammingmultilineperformancepre-processorspromiserawgitrawgithubsimpletestemtravisuglifyzen of python

Archives

  • March 20144
  • August 20133

Recent Posts

  • Problem with static inheritance in CoffeeScript (and JavaScript)
  • Preserving /*** multiline strings ***/ with UglifyJS2
  • JavaScript's eval() and Function() constructor
  • Build your own TDD boilerplate project for JavaScript
  • Don't Over-Promise
© 2014 David Kaye
Powered by Hexo
Home Archives