Exercise 46
- Create a new index46.js file
- Define a userAndPassword variable and assign the following value: 'pepito2017,12345'
- Define a username variable and use the substr method to only get the username from the userAndPassword variable (pepito2017)
- Define a password variable and use the substr method to only get the password from the userAndPassword variable (12345)
- Show the following output:
The user %username% has %password% as password