Nucor interview question

When would you use javascript?