Sort Arrays with JavaScript Methods

ofrecido por
Coursera Project Network
En este proyecto guiado, tú:

Recognize the variety of ways in which an array's elements can be ordered.

Sort the elements in an array into a specific order.

Use the JavaScript sort() method to sort elements in an array.

Clock2 hours
IntermediateIntermedio
CloudNo se necesita descarga
VideoVideo de pantalla dividida
Comment DotsInglés (English)
LaptopSolo escritorio

By the end of this project, you will have gained practical experience in sorting the elements in an array using a JavaScript method. You will learn to reorder the elements in an array using specific techniques based on whether the element values are numbers, letters, mixed-case letters, or objects. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Habilidades que desarrollarás

  • Sorting Arrays
  • JS Sort() method
  • Javascript Methods
  • Object arrays
  • javascript syntax

Aprende paso a paso

En un video que se reproduce en una pantalla dividida con tu área de trabajo, tu instructor te guiará en cada paso:

  1. Use the JavaScript sort() and reverse() methods to sort elements in an array in alphabetic and reverse alphabetic order.

  2. Use the JavaScript sort() method with toLowerCase() and localeCompare() methods to correctly sort mixed-case elements in an array.

  3. Alter an array sort to use simple math with the JavaScript sort() method to compare the numeric value of elements as they are sorted.

  4. Reorder the elements in an array randomly using the JavaScript sort() method with arguments that include the random() method.

  5. Include a property name in the JavaScript sort() method function to order the elements in an object array by property value.

Cómo funcionan los proyectos guiados

Tu espacio de trabajo es un escritorio virtual directamente en tu navegador, no requiere descarga.

En un video de pantalla dividida, tu instructor te guía paso a paso

Preguntas Frecuentes

Preguntas Frecuentes

¿Tienes más preguntas? Visita el Centro de Ayuda al Alumno.