GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

HIGHER ORDER FUNCTIONZ

ig ag Computer Studies MCAT Englisch 2 Karten

Karten in diesem Stapel (2)

  1. 1.replace()The replace() method searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.
    *** str.replace(/blue/g, "red")
    *** str.replace(/,/g, "")
    *** can also take function at end!!!
    var res = str.replace(/blue|house|car/gi, function myFunction(x){return x.toUpperCase();})
  2. 2.filter()filters an array, returns an array where of values that meet a criteria.
    var ages = [32, 33, 16, 40];
    function checkAdult(age) {
    return age >= 18; }
    var result = ages.filter(checkAdult);
    }

Informationen

Beschreibung
MCAT Computer Studies Karteikarten am HIGHER ORDER FUNCTIONZ, erstellt von ig ag am 17/09/2016.
Erstellt von
ig ag · Sep 2016
Aktualisiert
19 Sep 2016
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck