question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Challenge Storing Values with the Equal Operator has an issue. User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Setup
var a;
var b = 2;

// Only change code below this line

b = a = 7;

The parser doesn’t accept chaining operators… 😉

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
SaintPetercommented, Apr 11, 2016

I think the instructions are pretty clear and unambiguous. They tell you exactly what to do and in what order to do it. The tests then test for that.

Yes, the chained answer is “correct” in the general sense, but it is not technically possible to test for all possible correct solutions - just the ones we’re looking for.

These challenges are intended to serve people who are brand new to code. If you are experienced to know what chaining operators are, then why are you even doing these challenges to begin with? These challenges are optional.

0reactions
raisedadeadcommented, Apr 20, 2016

I agree with @SaintPeter . This exercise is purely concentrating on the basics, and adding complex checks would be tedious to manage as well.

While I agree @adrenalin you may have got a valid assignment operation here, it just defeats the purpose of the challenge and its target audience.

Thanks, and happy Coding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LiftMaster Commercial Operator Parts: Chains
Shop for Liftmaster commercial chains for your LiftMaster commercial operator.
Read more >
Gate Operator Chains | Hoover Fence Co.
Slide gate operator chain is easy to adjust, shorten, and lengthen with chain break tools and connecting links. Consult manufacturer's recommendations found in ......
Read more >
Chain for Gate Openers, Sliding Gate Operator Chain # 41 ...
Amazon.com: Chain for Gate Openers, Sliding Gate Operator Chain # 41 use by Most Residential Slide Gate Openers Roller Chain - Riveted, Steel...
Read more >
Gate Opener Chains, Gate Operator Chains, Stainless Steel ...
Chains for gate operators. A connecting link is included with every chain. Chains are sold in 10 foot lengths and can be linked...
Read more >
Optional chaining (?.) - JavaScript - MDN Web Docs - Mozilla
The optional chaining ( ?. ) operator accesses an object's property or calls a function. If the object accessed or function called is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found