D
D
danilstep2018-02-17 16:51:49
JavaScript
danilstep, 2018-02-17 16:51:49

Why don't bitwise operators work?

There is an expression:

var summidle=3
  var sum=16 

  if ((sumidle==3) & (summ>11 & sum<22)){
    alert("legend")	
  }

But the legend is not displayed, it seems to me that it is not displayed because the problem is in the bitwise operators "Maybe I entered them wrong" , who can explain why, please explain.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Knyazev, 2018-02-17
@danilstep

You have a typo in the comparison operation - sumidle. – and summidle is declared.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question