Advertisement
tr00per92

12-variables

Jul 15th, 2014
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function variablesTypes(input) {
  2.     console.log("My name: %s //type is %s \nMy age: %s //type is %s \nI am male: %s //type is %s \nMy favourite foods are: %s //type is %s",
  3.     input[0], typeof(input[0]), input[1], typeof(input[1]), input[2], typeof(input[2]), input[3].toString(), typeof(input[3]));
  4. }
  5. variablesTypes(['Pesho', 22, true, ['fries', 'banana', 'cake']]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement