DataArt Interview Question

The most difficult questions for me were about javascript.