#####(1) Instantiate a hash in two ways.
# your code here
#####(2)
<?PHP | |
// Generates a strong password of N length containing at least one lower case letter, | |
// one uppercase letter, one digit, and one special character. The remaining characters | |
// in the password are chosen at random from those four sets. | |
// | |
// The available characters in each set are user friendly - there are no ambiguous | |
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
// makes it much easier for users to manually type or speak their passwords. | |
// | |
// Note: the $add_dashes option will increase the length of the password by |
#####(1)
Given the following array, use each
to enumerate over it, using puts
to print this sentence to the console for each element: [THE_NAME] is Mario Batali's fancy [THE_CUISINE] joint
.
arr = [
{name: 'Babbo', cuisine: 'high-priced italian'},
{name: 'Del Posto', cuisine: 'higher-priced italian'},
{name: 'Eataly', cuisine: 'disney world of an italian market'},
(1) Create a hash with the following key value pairs
key | value |
---|---|
red | green |
yellow | purple |
blue | orange |