Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var person = {
- firstName: "John",
- lastName: "Doe",
- age: "18",
- country: "Greenland"
- };
- with(person) {
- console.log("Hi, my name is " + firstName + " " + lastName +
- ". I'm " + age + " years old, and live in " + country + ".");
- }
- // "Hi, my name is John Doe. I'm 18 years old, and live in Greenland."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement