Raycasting example from 3D Collision Detection Tutorial

I took example code from this video (starts at 10:00 ) https://www.youtube.com/watch?v=IG95gd5WRrg&t=603s
here what i tried but it is not working, can somebody check what i did wrong ?
https://jsfiddle.net/3wjkda4p/

Updated fiddle: https://jsfiddle.net/grmpqhfe/

collisionResults > 0 is not valid. It should be collisionResults.length > 0. Besides, I suggest you use a static vector for the ray’s direction. Also ensure that this vector always has unit length.

but what if i want check collisions to all directions ? can i use dynamic direction ? like if i want move let check left side and bottom etc

You can define the various direction vectors once in the local space of your object e.g. (1, 0, 0) for right, (0, - 1, 0 ) for bottom and so on. If your box can rotate, you can then use Vector3.applyQuaternion() to apply the world rotation to these vectors when testing. In any event, you perform the ray intersection test for each of these direction vectors.