Skip to content

Joseph Dickson

From the desktop of Joseph Dickson

  • Now
  • About Me
  • RSS
  • Privacy Policy
  • Mastodon
  • Bitbucket
  • LinkedIn
  • ClassicPress Profile
  • WordPress Profile
  • Email

Tag: You Don’t Know JS

Coercion in Javascript

Coercion in Javascript

Day 3: Coercion

To oversimplify this is the act of converting a value from one type to another. An array to a number, a string to an boolean etc.

var a = 42;
var b = a + ""; // implicit coercion
var c = String( a ); // explicit coercion

You Don’t Know JS

Author Joseph DicksonPosted on May 1, 2017Categories 100 Days Of JavascriptTags Javascript for WordPress, You Don't Know JS

Search

  • Now
  • About Me
  • RSS
  • Privacy Policy
  • Mastodon
  • Bitbucket
  • LinkedIn
  • ClassicPress Profile
  • WordPress Profile
  • Email

Joseph Dickson Privacy Statement Proudly powered by ClassicPress