dave,
@dave@feddit.uk avatar

Q2: Which is more efficient? Code blocks do 2 different things so cannot compare. What gives?

https://feddit.uk/pictrs/image/b30d97cc-de8f-4d49-b256-6c3e47b967bc.jpeg

harendra21,

Oh, Sorry for inconvenience. I will update this question

dave,
@dave@feddit.uk avatar

No inconvenience—I like these kinds of things but then another question had a typo in it (varx instead of var x) and one of the options was ‘Error’ but again that was incorrect. It’s probably worth running these snippets just to make sure :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • javascript@programming.dev
  • rosin
  • thenastyranch
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • cisconetworking
  • slotface
  • vwfavf
  • everett
  • Durango
  • kavyap
  • GTA5RPClips
  • megavids
  • khanakhh
  • osvaldo12
  • ngwrru68w68
  • anitta
  • normalnudes
  • ethstaker
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • tester
  • JUstTest
  • All magazines