CodePen

HTML

            
              
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              function Point() {
    var x = 0;
    var y = 0;
    var z = 0;

    this.moveBy = function (i, j, k) {x+=i; y+=j; z+=k;},
    this.moveTo = function (i, j, k) {x=i; y=j; z=k;},
    this.show = function () {console.log("Current position is ", x,",", y,",", z)}
}
> p1 = new Point()
{ moveBy: [Function],
  moveTo: [Function],
  show: [Function] }
> p1.show()
Current position is  0 , 0 , 0
undefined
> p1.moveBy(1,2,3)
undefined
> p1.show()
Current position is  1 , 2 , 3
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................