Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About arthemg

  • Rank
  1. It throws an error: Uncaught #<Object> sphere.js:6 assert sphere.js:6 calculate sphere.js:21 I'm trying to figure it out, searching the web, but I can't seem to figure out the solution.
  2. Hello, I am new to the programming and javascript and I have a question. I can not figure out how to get assertion function to work. I tried it with the sphere.js that is included with the book but it does not work. once I run the code nothing happens, but if I comment out the radius assertion it works fine. Thanks for the help. //script function assert(expression, message) { if (!expression) throw { name: 'Assertion Exception', message: message}; } function calculate() { 'use strict'; // For storing the volume: var volume; // Get a reference to the form value: var r
  • Create New...