Smooth Movement to target with Javascript

Hello, Im quite new to Javascript.
Im trying to make a EnemyMoveToTarget Javascript, it’s not gonna be a Teleport it’s gonna “walk” to the target.
Anyone know how to script it?
Also i dont get what it means with the “Float” that uses to stand next to variables, can someone explain what it means?

Kind of like something in this thread?

http://forum.unity3d.com/threads/91950-Mouse-click-movement-script-Almost-done-Need-help

Yes, but not with mouse clicking and it’s gonna automatic like an enemyAi moving towards the player.