SlideShare a Scribd company logo
In JavaScript, create a function, findNum(), that determines if a number is in an array. The function
takes in an array of integers, int[] and a int number to find, and returns a boolean, true or false.
Create a function, removeDuplicates(), that removes duplicates from a sorted array. The function
takes in an array of integers, int[], and returns a new array with only unique integers.

More Related Content

More from aarikaadesigners

Bobby decide vender limonada en un caluroso da de verano S.pdf
Bobby decide vender limonada en un caluroso da de verano S.pdfBobby decide vender limonada en un caluroso da de verano S.pdf
Bobby decide vender limonada en un caluroso da de verano S.pdf
aarikaadesigners
 
Heres a menu Appetizer Roll V Spring egg V Sour.pdf
Heres a menu Appetizer  Roll V   Spring egg V   Sour.pdfHeres a menu Appetizer  Roll V   Spring egg V   Sour.pdf
Heres a menu Appetizer Roll V Spring egg V Sour.pdf
aarikaadesigners
 
Estudio de caso Formacin del Local 18 del Sindicato Canadie.pdf
Estudio de caso Formacin del Local 18 del Sindicato Canadie.pdfEstudio de caso Formacin del Local 18 del Sindicato Canadie.pdf
Estudio de caso Formacin del Local 18 del Sindicato Canadie.pdf
aarikaadesigners
 
Everything we think say and do is processed through our ow.pdf
Everything we think say and do is processed through our ow.pdfEverything we think say and do is processed through our ow.pdf
Everything we think say and do is processed through our ow.pdf
aarikaadesigners
 
El escritorio de un empleado est situado en una zona muy tr.pdf
El escritorio de un empleado est situado en una zona muy tr.pdfEl escritorio de un empleado est situado en una zona muy tr.pdf
El escritorio de un empleado est situado en una zona muy tr.pdf
aarikaadesigners
 
Durante los ltimos 75 aos cul de las siguientes clases .pdf
Durante los ltimos 75 aos cul de las siguientes clases .pdfDurante los ltimos 75 aos cul de las siguientes clases .pdf
Durante los ltimos 75 aos cul de las siguientes clases .pdf
aarikaadesigners
 
Able contrat para vender un Picasso raro a Baker por 120.pdf
Able contrat para vender un Picasso raro a Baker por  120.pdfAble contrat para vender un Picasso raro a Baker por  120.pdf
Able contrat para vender un Picasso raro a Baker por 120.pdf
aarikaadesigners
 
Define and give example of the following term 1positivism .pdf
Define  and give example of the following term 1positivism .pdfDefine  and give example of the following term 1positivism .pdf
Define and give example of the following term 1positivism .pdf
aarikaadesigners
 
Como una cadena montaosa se erosiona a El nivel del mar .pdf
Como una cadena montaosa se erosiona  a El nivel del mar .pdfComo una cadena montaosa se erosiona  a El nivel del mar .pdf
Como una cadena montaosa se erosiona a El nivel del mar .pdf
aarikaadesigners
 
A 4yearold boy has a history of bleeding His 12yearold .pdf
A 4yearold boy has a history of bleeding His 12yearold .pdfA 4yearold boy has a history of bleeding His 12yearold .pdf
A 4yearold boy has a history of bleeding His 12yearold .pdf
aarikaadesigners
 
1 The Advanced Forensic Format AFF is an ondisk format f.pdf
1 The Advanced Forensic Format AFF is an ondisk format f.pdf1 The Advanced Forensic Format AFF is an ondisk format f.pdf
1 The Advanced Forensic Format AFF is an ondisk format f.pdf
aarikaadesigners
 
Cul de los siguientes pares de cinco C de comportamiento.pdf
Cul de los siguientes pares de cinco C de comportamiento.pdfCul de los siguientes pares de cinco C de comportamiento.pdf
Cul de los siguientes pares de cinco C de comportamiento.pdf
aarikaadesigners
 
1a If you have authority please design and draw the Organi.pdf
1a If you have authority please design and draw the Organi.pdf1a If you have authority please design and draw the Organi.pdf
1a If you have authority please design and draw the Organi.pdf
aarikaadesigners
 
After Bank Corps stock plummets it anticipates a securitie.pdf
After Bank Corps stock plummets it anticipates a securitie.pdfAfter Bank Corps stock plummets it anticipates a securitie.pdf
After Bank Corps stock plummets it anticipates a securitie.pdf
aarikaadesigners
 
1 NYSE explique por qu las acciones que se negocian en la.pdf
1 NYSE explique por qu las acciones que se negocian en la.pdf1 NYSE explique por qu las acciones que se negocian en la.pdf
1 NYSE explique por qu las acciones que se negocian en la.pdf
aarikaadesigners
 
1 Consider the market for Colonoscopy at the beginning of 2.pdf
1 Consider the market for Colonoscopy at the beginning of 2.pdf1 Consider the market for Colonoscopy at the beginning of 2.pdf
1 Consider the market for Colonoscopy at the beginning of 2.pdf
aarikaadesigners
 
1 Cul es su idea para un nuevo producto alimenticio que c.pdf
1 Cul es su idea para un nuevo producto alimenticio que c.pdf1 Cul es su idea para un nuevo producto alimenticio que c.pdf
1 Cul es su idea para un nuevo producto alimenticio que c.pdf
aarikaadesigners
 
During anaerobic growth some microbes can transfer electrons to iron (.pdf
During anaerobic growth some microbes can transfer electrons to iron (.pdfDuring anaerobic growth some microbes can transfer electrons to iron (.pdf
During anaerobic growth some microbes can transfer electrons to iron (.pdf
aarikaadesigners
 
A computer can be classified as either MAC or PC- Of all of the comput.pdf
A computer can be classified as either MAC or PC- Of all of the comput.pdfA computer can be classified as either MAC or PC- Of all of the comput.pdf
A computer can be classified as either MAC or PC- Of all of the comput.pdf
aarikaadesigners
 
Write in SML Suppose that we will represent integers by a list of the.pdf
Write in SML Suppose that we will represent integers by a list of the.pdfWrite in SML Suppose that we will represent integers by a list of the.pdf
Write in SML Suppose that we will represent integers by a list of the.pdf
aarikaadesigners
 

More from aarikaadesigners (20)

Bobby decide vender limonada en un caluroso da de verano S.pdf
Bobby decide vender limonada en un caluroso da de verano S.pdfBobby decide vender limonada en un caluroso da de verano S.pdf
Bobby decide vender limonada en un caluroso da de verano S.pdf
 
Heres a menu Appetizer Roll V Spring egg V Sour.pdf
Heres a menu Appetizer  Roll V   Spring egg V   Sour.pdfHeres a menu Appetizer  Roll V   Spring egg V   Sour.pdf
Heres a menu Appetizer Roll V Spring egg V Sour.pdf
 
Estudio de caso Formacin del Local 18 del Sindicato Canadie.pdf
Estudio de caso Formacin del Local 18 del Sindicato Canadie.pdfEstudio de caso Formacin del Local 18 del Sindicato Canadie.pdf
Estudio de caso Formacin del Local 18 del Sindicato Canadie.pdf
 
Everything we think say and do is processed through our ow.pdf
Everything we think say and do is processed through our ow.pdfEverything we think say and do is processed through our ow.pdf
Everything we think say and do is processed through our ow.pdf
 
El escritorio de un empleado est situado en una zona muy tr.pdf
El escritorio de un empleado est situado en una zona muy tr.pdfEl escritorio de un empleado est situado en una zona muy tr.pdf
El escritorio de un empleado est situado en una zona muy tr.pdf
 
Durante los ltimos 75 aos cul de las siguientes clases .pdf
Durante los ltimos 75 aos cul de las siguientes clases .pdfDurante los ltimos 75 aos cul de las siguientes clases .pdf
Durante los ltimos 75 aos cul de las siguientes clases .pdf
 
Able contrat para vender un Picasso raro a Baker por 120.pdf
Able contrat para vender un Picasso raro a Baker por  120.pdfAble contrat para vender un Picasso raro a Baker por  120.pdf
Able contrat para vender un Picasso raro a Baker por 120.pdf
 
Define and give example of the following term 1positivism .pdf
Define  and give example of the following term 1positivism .pdfDefine  and give example of the following term 1positivism .pdf
Define and give example of the following term 1positivism .pdf
 
Como una cadena montaosa se erosiona a El nivel del mar .pdf
Como una cadena montaosa se erosiona  a El nivel del mar .pdfComo una cadena montaosa se erosiona  a El nivel del mar .pdf
Como una cadena montaosa se erosiona a El nivel del mar .pdf
 
A 4yearold boy has a history of bleeding His 12yearold .pdf
A 4yearold boy has a history of bleeding His 12yearold .pdfA 4yearold boy has a history of bleeding His 12yearold .pdf
A 4yearold boy has a history of bleeding His 12yearold .pdf
 
1 The Advanced Forensic Format AFF is an ondisk format f.pdf
1 The Advanced Forensic Format AFF is an ondisk format f.pdf1 The Advanced Forensic Format AFF is an ondisk format f.pdf
1 The Advanced Forensic Format AFF is an ondisk format f.pdf
 
Cul de los siguientes pares de cinco C de comportamiento.pdf
Cul de los siguientes pares de cinco C de comportamiento.pdfCul de los siguientes pares de cinco C de comportamiento.pdf
Cul de los siguientes pares de cinco C de comportamiento.pdf
 
1a If you have authority please design and draw the Organi.pdf
1a If you have authority please design and draw the Organi.pdf1a If you have authority please design and draw the Organi.pdf
1a If you have authority please design and draw the Organi.pdf
 
After Bank Corps stock plummets it anticipates a securitie.pdf
After Bank Corps stock plummets it anticipates a securitie.pdfAfter Bank Corps stock plummets it anticipates a securitie.pdf
After Bank Corps stock plummets it anticipates a securitie.pdf
 
1 NYSE explique por qu las acciones que se negocian en la.pdf
1 NYSE explique por qu las acciones que se negocian en la.pdf1 NYSE explique por qu las acciones que se negocian en la.pdf
1 NYSE explique por qu las acciones que se negocian en la.pdf
 
1 Consider the market for Colonoscopy at the beginning of 2.pdf
1 Consider the market for Colonoscopy at the beginning of 2.pdf1 Consider the market for Colonoscopy at the beginning of 2.pdf
1 Consider the market for Colonoscopy at the beginning of 2.pdf
 
1 Cul es su idea para un nuevo producto alimenticio que c.pdf
1 Cul es su idea para un nuevo producto alimenticio que c.pdf1 Cul es su idea para un nuevo producto alimenticio que c.pdf
1 Cul es su idea para un nuevo producto alimenticio que c.pdf
 
During anaerobic growth some microbes can transfer electrons to iron (.pdf
During anaerobic growth some microbes can transfer electrons to iron (.pdfDuring anaerobic growth some microbes can transfer electrons to iron (.pdf
During anaerobic growth some microbes can transfer electrons to iron (.pdf
 
A computer can be classified as either MAC or PC- Of all of the comput.pdf
A computer can be classified as either MAC or PC- Of all of the comput.pdfA computer can be classified as either MAC or PC- Of all of the comput.pdf
A computer can be classified as either MAC or PC- Of all of the comput.pdf
 
Write in SML Suppose that we will represent integers by a list of the.pdf
Write in SML Suppose that we will represent integers by a list of the.pdfWrite in SML Suppose that we will represent integers by a list of the.pdf
Write in SML Suppose that we will represent integers by a list of the.pdf
 

Recently uploaded

Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Sourabh Kumar
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
ricssacare
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
parmarsneha2
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Denish Jangid
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
Sayali Powar
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
ssuserbdd3e8
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 

Recently uploaded (20)

Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 

In JavaScript create a function findNum that determines.pdf

  • 1. In JavaScript, create a function, findNum(), that determines if a number is in an array. The function takes in an array of integers, int[] and a int number to find, and returns a boolean, true or false. Create a function, removeDuplicates(), that removes duplicates from a sorted array. The function takes in an array of integers, int[], and returns a new array with only unique integers.