Filtering the N word

How do you filter the N word in a list of Strings in HTML?
Let's say you have the list ["I","love","coding","cool","software"] and you want to remove the word "cool" and transform the list into:
["I","love","coding","software"]

HOW?

Attached: 1517935594472.jpg (1024x831, 104K)

Other urls found in this thread:

youtube.com/watch?v=bJ5ppf0po3k
twitter.com/SFWRedditVideos

Do you mean an array of javascript strings? HTML has only markup, like etc.

To filter out a word you would have to iterate through the array and check if each string is equal to a word like
array[index] == "string"
then remove, but idk how in javascript

Add a JavaScript block.
Learn how to incorporate JS into your webpage.

by nigger nigger nigger jew

document.body.innerHTML = document.body.innerHTML.replace(/nigger/g, "");

You can close you eyes but it won't change what you are, you filthy neet.

t. n****r

from a list itself?
list.splice(list.findIndex(s => s.match(/cool/ig)), 1);

ArrayList list = new ArrayList();

for(int j = 0; j

you realize you just said you are a nigger, r-right?
>t. newfag

whatever neeerd

java.. more like gay jajjajjajajja

Java is the language of God

>this took you 3 minutes
kys you're self

well wuz it wrong?

Quite being a little bitch and learn words can't hurt you.

const result = words.filter(word => word === 'cool');

Whatever you do, your users will find workarounds so that those googles and skypes will be exterminated in the end. See kyle!

language of pejeets you mean?

By sucking on Tyrone's ginormous, smegma infested NIGGER COCK.

window.alert("This page may contain offensive language. If you are offended by any words do not continue. By accepting this you agree that you either aren't offended by words or knowingly accept the words are present and wish to see them.")

Why don't you replace it with a non-offensive word like roodypoo or something?

Those are some really nice tittays
Sauce?

//turn list into array called whatever
let arr=listofshit;
arr=arr.filter(a=>a!="cool");

done

You mean NIGGER?

OP is a nigger lover

Replacing innerHTML has the side effect of killing off certain attributes. Events iirc.
So, use it with caution.

regex?

No he called himself a nagger

Attached: hqdefault.jpg (480x360, 10K)

who's the demon semen

Kill yourself nigger newfag

Nigger nigger nigger big gonna nig

Neo geo?

Now you got two problems!

for(var i = 0; i < string.length; i++) {
if(string.charAt(i).toLowerCase() == 'n') {
if(string.charAt(i + 1).toLowerCase() == "i") {
if(string.charAt(i + 2).toLowerCase() == "g") {
if(string.charAt(i + 3).toLowerCase() == "g") {
if(string.charAt(i + 4).toLowerCase() == "e") {
if(string.charAt(i + 5).toLowerCase() == "r") {
alert("no swearing on my christian server");
}
}
}
}
}
}
}

What is with these newage faggots that are super offended by the word nigger? The highschoolers that come to Jow Forums now are big pussies.

guys he means the Nth word

are you retarded?

By having thicker skin you sensitive twat.

del word_list[2]

Only if you have events named "OnNigger" hahaha

Good lord my eyes

I will never understand why people use terms like N-word, n****r, f*ck etc.
You realize you are still saying the word right? Putting pretty flowers around a black man won't make him any less black

What's the problem with nuggies?
If you don't like them you're a fucking nigger and should die by falling inside a giant pot of molten legos.

Attached: 1428675741536.jpg (616x462, 40K)

create a for loop that loops over the array and a bunch of if statements based on the words you don't like, then if that word is in the array you just slice the array using the index of where you are in the array

simple

strArray.filter(val => val == "nigger");

or he could use regex instead like a sane person

>idk how in javascript
filteredList = list.filter((str) => str !== strToRemove)

Brainlet much?

return string!= null && string.contains("nigger");

can you guess how many japanese micropenises she has sucked since that photograph?

>a giant pot of molten legos
That would cost a lot.

Likely, zero. Micropenises are rare.

I hate this racist forum. Fuck all of you, DIE FUCKING SLOW

if racist do blockuser

youtube.com/watch?v=bJ5ppf0po3k