Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let myFunc1 =function(){
- return 8*10;
- }
- let myFunc2=function(aFunc){
- console.log(aFunc+10);
- }
- myFunc2(myFunc1());
- //Q2
- const student={
- name:'kamal',
- lastName:'Thennakoon',
- age:18,
- school:'Royal College',
- fullName : function() {
- console.log(this.name + " " + this.lastName);
- }
- };
- student.fullName();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement