Code A: var x = 10; y = –x + 1; alert(y); Code B: var x = 10; y = x– + 1; alert(y); What is the output for code A and B?Questions & Answers › Category: Programming Language › Code A: var x = 10; y = –x + 1; alert(y); Code B: var x = 10; y = x– + 1; alert(y); What is the output for code A and B? 0 Vote Up Vote Down Adam asked 3 years ago Code A: var x = 10; y = --x + 1; alert(y); Code B: var x = 10; y = x-- + 1; alert(y); What is the output for code A and B?a. 10,11b. 11,11c. 11,10d. 10,10Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...1 Answers 1 Vote Up Vote Down Lokesh Kumar Staff answered 3 years ago a. 10,11Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...