🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Bash Scripting for DevOps: all 10 questions

Quiz: Bash Scripting for DevOps · Question 2 of 10

In npm test && npm run build, when does the build run?

In npm test && npm run build, when does the build run?

  1. A.Always
  2. B.Only if npm test exits with 0
  3. C.Only if npm test fails
  4. D.Never
Answer & explanation

Correct answer: Only if npm test exits with 0

&& runs the second command only when the first one succeeded.

Can you get the rest right without peeking?

Take the timed Quiz: Bash Scripting for DevOps quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →