Smartness interview question

Why is JavaScript better suited for some use cases than other languages?