Operator chains
See original GitHub issueChallenge 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:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.