New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN: 9781305503922
Author: Patrick M. Carey
Publisher: Cengage Learning
bartleby

Concept explainers

Question
Book Icon
Chapter 12, Problem 8RA
Program Plan Intro

To sort the keyWords array in alphabetical order.

Sorting is the process of arranging or ordering the given items systematically. In JavaScript, the sort ( ) method is used to sort the strings in the order. Sorting of values can have either ascending or descending order.

Blurred answer