Write an expression using the push() method to add the strings 'dog' and 'cat' (the string 'cat' must be last) to the array myArray. Write the expression without spaces.
Array Add/Remove elements
The push() method
Report a typo
Enter a short text
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.