Tuesday, August 19, 2014

Previous Interview Question Next Interview Question
Home

If my user_name is “foobar”,which of the following will be displayed for the pop-up on line 3?

       1) function welcome(user_name)
2) { 3) alert("well,hello" & user_name & "! I hope you like the site"); 4) }
       a) It will be “Well,hello foobar!I hope you like the site”,because the concatenation will happen  before the alert
       b) It will be “Well,hello!I hope you like the site”,because the concatenation will happen after              the alert
       c) It will be ”foobar” ,because variables display by themselves when put in an alert
       d) It will be “0”,because the ampersand(&) isn’t the javascript concatenation operator


Answer : A

Previous Interview Question Next Interview Question
Home

1 comments :