i want to see if there is no repetitive day insert it into newArr that is the case (only if() part)

Questions : i want to see if there is no repetitive day insert it into newArr that is the case (only if() part)

85

const arr = _OFFSET);  ["monday","tuesday","thursday","wednesday",
 (-SMALL   "friday","saturday","sunday"];
let _left).offset  newArr = [];
var num = prompt('Enter arrowImgView.mas  number :');
for (var i = 0; i < num; (self.  i++) {
  var day = prompt('Enter day equalTo  :');
  if(newArr.includes(day) !== day) make.right.  newArr.push(day);
}
var num = mas_top);  prompt('Enter number :');
for (var i = ImgView.  0; i < num; i++) {
  var day = ReadIndicator  prompt('Enter day :');
  _have  if(newArr.includes(day) != day) .equalTo(  newArr.push(day);
}
console.log(7 - make.top  (newArr.length));

i only want to know if() part if we programming entered a repetitive day like friday Learning twice push it once into the newArr for Earhost example 1 | friday & 1 | friday most effective ---- > 6

Total Answers 1
25

Answers 1 : of i want to see if there is no repetitive day insert it into newArr that is the case (only if() part)

If you wish to check the entered day is wrong idea present in the array, and if no, push use of case the element to newArr, change your if United condition to:

if(!newArr.includes(day))
{
  ...
}

Top rated topics

How to rotate the background image in the container?

How is an array of value types stored in .NET object heap?

CSS How to print a table with background color (without Print settings changes)

Hibernate cascade save parent and children - parent key not found

Java heap analysis with OQL/VisualVM: find path from indirect referrer to referee?

Compressing the core files during core generation

C++what is the type of the __LINE__ macro

Where do we really need a set of System v Semaphores?

Java switch statement multiple cases

How do you directly overlay a scatter plot on top of a jpg image in matplotlib / Python?

How to compress JSON requests in Django?

Can you extrapolate the "email address" from a websites std. contact us form?

How can I get this email function to work?

How do I make XAML DataGridColumns fill the entire DataGrid?

Ruby convert Object to Hash

Running out of memory while running Java code

Applet: Java heap space

Python: convert camel case to space delimited using RegEx and taking Acronyms into account

Wp_nav_menu change sub-menu class name?

Android: Sleep stages/levels on an Android device?

How do I turn off the fault tolerant heap?

Groovy multiline string escape all

The type arguments cannot be inferred from the usage. Try specifying the type arguments explicitly

Query to show all tables and their collation

Shell_exec php with nohup

How are Dynamic Programming algorithms implemented in idiomatic Haskell?

What, exactly, is needed for "margin: 0 auto;" to work?

Firefox kiosk mode : just 3 buttons needed

DIfference between Modules and Namespaces in F#

Fire jQuery event on div change

Removing all decimals in PHP

Crystal Reports is not showing values for database fields in text objects

How to efficiently de-interleave bits (inverse Morton)

How to play .aac format audio file in android

Transient Mysql::Error: Duplicate entry on a high-traffic site - any ideas?

Delphi ^A syntax: Documented, implied, or undocumented?

Adding a CGGradient as sublayer to UILabel hides the text of label

MVC multiple views for a single controller

Help regading not in and inner join

Triggering the "stack" option manually on a JQuery UI draggable

Empty pages in RDLC-Report

Currency format for display

Lazarus: DBGrid showing "(MEMO)" as the value of string fields in SQLite 3

How to sort a stack using only stack operations?

Sencha Touch - Accessing Associated-Model Store JSON via Nested Looping

What is the difference between the float and integer data type when the size is the same?

XML Parsing Error: undefined entity - special characters

How to break line in JavaScript?

I can't install python-ldap

How can I write output from a unit test?

Top