Which of the following statements is not valid?
A. cars = Array.new
B. cars = %w(Pinto Corvette Viper)
C. cars = ["Pinto", "Corvette", "Viper"]
D. None of the above
Answer: D
Computer Science & Information Technology
A. cars = Array.new
B. cars = %w(Pinto Corvette Viper)
C. cars = ["Pinto", "Corvette", "Viper"]
D. None of the above
Answer: D