0

How can I initialize multiple variables at once?

var alpha, beta, theta = null
console.log alpha #=> null 
console.log beta  #=> null
console.log theta #=> null

1 Answer 1

1

should be something like

alpha = beta = theta = null

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.