Pergunta de entrevista da empresa OPSWAT

What is the scope of JavaScript? How to define a jQuery, PHP variable?