Javascript Jquery Wait For Variable To Be Assigned Value

Javascript Jquery Wait For Variable To Be Assigned Value