Skip to content
Advertisement

Does shell map restrict the key format?

JavaScript

Run the above code will get error:

JavaScript

If I modify key=’dev’, it works. So, the key only can be a simple string?

Advertisement

Answer

You must declare the array associative first:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement