Question: Write this in Javascript ES6 Create class Jedi and Class Sith inherited from Class Jedi that can show the result as shown below. Create class

Write this in Javascript ES6

Write this in Javascript ES6 Create class "Jedi" and Class Sith inherited

Create class "Jedi" and Class Sith inherited from Class "Jedi" that can show the result as shown below. Create class "Jedi" and Class Sith inherited from Class "Jedi" that can show the result as shown below. //-_-_-Declare Objects let yoda = new Jedi(); let darth = new Sith(); yoda.say() darth.say() console.log(yoda.forcelsDark) console.log(darth.forcelsDark) console.log(yoda.force()) console. log (darth.force()) //-_-Output- // "Hello, OB1" "Yes, Master" false true Fear is the path to the dark side Join the dark side Practice2: Arrow Function Using the arrow function in the Class "MyMath" to call the methods and show the results below. Using the arrow function in the Class "MyMath" to call the methods and show the results below. var result = new MyMath(); console.log(result.add(2,3)); console.log(result.minus(2,3)); console.log(result.multiply(2,3)); console.log(result.dikide(2,0)); // Output-nan // 1 6 undefined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!