Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function variablesTypes(input) {
- 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",
- input[0], typeof(input[0]), input[1], typeof(input[1]), input[2], typeof(input[2]), input[3].toString(), typeof(input[3]));
- }
- variablesTypes(['Pesho', 22, true, ['fries', 'banana', 'cake']]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement