js dirname code example Example 1: js tan-1 Math.atan(2); Example 2: javascript dir console.dir(object);