Advertisement
crhunter

JavaScript Lab 01_q1

Feb 19th, 2020
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let myFunc1 =function(){
  2.     return 8*10;
  3. }
  4.  
  5. let myFunc2=function(aFunc){
  6.     console.log(aFunc+10);
  7. }
  8.  
  9. myFunc2(myFunc1());
  10.  
  11. //Q2
  12. const student={
  13.     name:'kamal',
  14.     lastName:'Thennakoon',
  15.     age:18,
  16.     school:'Royal College',
  17.     fullName : function() {
  18.         console.log(this.name + " " + this.lastName);
  19.     }
  20. };
  21.  
  22. student.fullName();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement