Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- console.log(document.querySelector('body').childNodes);
- var person = {
- name :{
- firstName : 'Apel',
- lastName : 'mahmud',
- },
- /*name : ['Apel', 'Mahmud'],*/
- id : ['011161036'],
- dept : ['cse'],
- interest : ['photography'],
- greeting : ['I travel for photography'],
- fullName : function () {
- return this.name.firstName + this.name.lastName;
- }
- }
- person.display = function(){
- return 'hello world';
- }
- console.log(person.fullName());
- console.log(person.display)
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement