Menu
×
×
Correct!

Exercise:

Use the correct keyword to output all elements in the cars array.

val cars = arrayOf("Volvo", "BMW", "Ford", "Mazda") for (x in cars) { println(x) }

Not Correct

Click here to try again.

Correct!

Next ❯
val cars = arrayOf("Volvo", "BMW", "Ford", "Mazda")
 (x  ) {
  println(x)
}

    
  




Log in to keep your progress
Sign up to keep your progress

Completed 0 of 39 Exercises:

KOTLIN Syntax
KOTLIN Variables
KOTLIN Data Types
KOTLIN Operators
KOTLIN Strings
KOTLIN Booleans
KOTLIN If...Else
KOTLIN While Loops
KOTLIN Arrays
KOTLIN For Loops
KOTLIN Functions
KOTLIN Classes

×

Reset the Score?

This will reset the score of ALL 39 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 39 KOTLIN exercises.

Share your score: