Home Question Archive

All Categories

SQL Server
JavaScript
C#
HTML
C++
CSS
SQL Server 2005
ASP.NET
JAVA

 

 
JavaScript Comma Operator
vote

What will be the action of executing the following code segment?

var b = "Hi";

var a = ( b = "Hello", alert("Hi"), "Howdy");

alert(b+a);

  Choose Your Answer:

It will show an alert with message HiHello

It will first show an alert with Hi and then an alert with HiHello

It will show an alert with message HelloHowdy

It will first show an alert with Hi and then an alert with HelloHowdy

     

Filter by Tag

      Title Category Point  
0
votes
5
attempts
2
correct
Numbers JavaScript
1
      By moshiur073
0
votes
3
attempts
3
correct
JavaScript Conditional Operator JavaScript
1
      By abdullah
0
votes
4
attempts
3
correct
JavaScript typeof JavaScript
2
      By abdullah
0
votes
2
attempts
1
correct
JavaScript Operator JavaScript
1
      By abdullah
0
votes
2
attempts
2
correct
JavaScript Variable Scope JavaScript
1
      By abdullah
0
votes
2
attempts
1
correct
JavaScript Array Functions JavaScript
1
      By abdullah
0
votes
2
attempts
2
correct
JavaScript Array Length JavaScript
1
      By abdullah
0
votes
2
attempts
1
correct
JavaScript Array Length JavaScript
1
      By abdullah
0
votes
2
attempts
2
correct
JavaScript Array Length JavaScript
1
      By abdullah
0
votes
2
attempts
2
correct
JavaScript Array Declaration JavaScript
1
      By abdullah

Filter by Tag

 

«StartPrev12NextEnd»

 

Tagged



How other members answered

Correct:
 
  100 % (4)
Incorrect:
 
  0 % (0)
Total attempts:
 
  4

Top Scorers

Rank Name Score Level
1 Intekhab Sadekin 22  
2 Moshiur Rahman 18  
3 Md. Nurul Ahad Tawhid 9  
4 kazisrabon 8  
5 Mushfikur Rahman 5  
6 Amit Seal Ami 4  
7 Maeenul Islam 3  
8 Mohayeminul Islam 3  
9 Ridi Ridwan 2  
10 H Carter 2  

Top Contributors

Rank Name Score Level
1 Maeenul Islam 34  
2 Abdullah Al Mueen 20  
3 Rasel 13  
4 Abdullah Ibne Anwar 12  
5 Bazlur Rahman Rokon 5  
6 Moshiur Rahman 5  
7 Ridi Ridwan 3  
8 SUMIT 1