Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

320
Vistas
Method to call words greater than x length

(Firstly, I would like to apologise as I am about a week deep in Javascript (and coding)).

My code is as follows

const b = a.method(a => a.length > 7); 

Essentially I need to change method to an iteration (not sure if that's even the correct term) that will create a new variable which only returns words greater than 7 characters.

I know length is obviously checking the length, which is great.. but I'm a bit stumped.

Any idea on where I can find a list of methods with easy explanations?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Your arrow function looks correct, you just need to pass it to .filter()

var foo = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
console.log(foo.filter(item => (item > 7)));
<div id="output"></div>

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda