Answer:
function findLongestWord(str) {
var longestWord = str.split(' ').sort(function(a, b) { return b.length - a.length; });
return longestWord[0].length;
}
findLongestWord(InputHere);
Explanation:
Replace InputHere with the input
Answer:
Polymorphism
Explanation:
You can have a basic button class that gets inherited by other classes.
class Button {
function pushButton(){}
}
class ElevatorButton extends Button{};
class BigRedButton extends Button{};
With these new classes, they inherit from the basic button class. They can decide what happens when the method pushButton() is called.
You don't need to worry about what pushButton() actually does, you can just call it if the object is of the type "Button" and you can expect it to work.
Answer:
The answer to this question is given below in the explanation section
Explanation:
Bulleted and Numbered List button appear in the <u>Paragraph </u>Toolbar.
On word processing software, these options display in paragraph toolbar in the Home ribbon.
for example, in MS Word, you can find them in the Home tab under paragraph groups of command.
however, it is noted that these options are appear in some other software under the formating toolbar.