SlideShare a Scribd company logo
1 of 13
Native applications have the best performance, highest security, and best user
experience.
Display hello
Variable bnane ke 3
tarike:
Issue with var type
Issue 1.Output will be undefine but error ana chahiye tha
Becs js engine is code ko mence
“Var x” ko top me patak deta hai
This concept(variable declaration shift to top) is called variable Hoisting
Hoisting is JavaScript's default behavior of moving
declarations to the top.
Note : Let n const type return error
instead of undefine becs it will not hoist
‘Var ‘Issue 2.Also here redeclaration are allowed but
in ‘let’ not allowed
Output: here 30 is overriten with 60
But not to be an error while it is declared erlier
too
But gives error in ‘let’ redeclaration
Output:
Var issue 3.scoping issue output
No issue with ‘let’ Output:
Const cant be changed or redeclared
Falsy
values:
Except above these all truthy values
Output:
Here this meance if name exist then return name
else return ‘User’
is a non-premitive data type in JS
It will store values in key: value pair
or
Or using ‘object destructuring’ ,we will pull out or khinch liya from inside object
For code cleaner or not repeted
or
U can rename as:
Key and value can be with same name
So ,it can be written direct :
Js function can be called before definition
due to function hoisting by js engine
So this is an issue that Function ko ek constant
me assign kr denge
that can ve solved
by using arrow function
output
parameterise
or
returning
Single sttement definitin can be written without {}
And return keyword for return
Object passing as a function argument n destructing n callin
Object destructuring direct inside parameter
Returning object
If is single line : Here we must give () becs js engine ko batana
padega ki object hai na ki function ki body
N we can get result
There are 7 primitive data types: string, number,
bigint, boolean, undefined, symbol, and null.
Rteference type act as a pointer in c,
If we change refrenced variable or object value then will be
changed in actual object vaor variable value
Here we change value of
obj1 but changed obj2 too
Premitive me copy variable me
value change hone se actual variable
me value koi change ni hota hai
Output:
output
Same in array becs array is also reference type:
Output:
Actual way to copy an object using
spread operator(...)
Output:
... obj se chije bahar (unpack hona )
nikal jati hai n fir se ek object ke
inside wrap kr diya As below :
Spread operator is usefull when copy of
another object values in new object with
adding or replace more item
Add item:
Replace item:
Output:
Copy array usning spread (...) operator
... Sprd oprtr se unpack ho gya the wapis
Se arr [] oprtr use krke pack kr diya
Copy two arrays into another array
output
Array destructuring
Array
iteration:
Using call back function in for each:
Array of objects inside array:
Change array objects value inside array:
Array Map:
Use for iterate array meanwhile
returns a new array:
Array Filter:
Or in single line if contain singe line
Dynamically remove items from array by passing parameter:
Filter multiple values by given condition:
Fetch method:returns promises that promiss to return sure or reject
If return then output in array object fron json(http) response
If single line return
OOP
import React from 'react';
import {Text, View } from 'react-native';
const App=()=> {
return (
<View>
<Text>Hello jaipur......!</Text>
</View>
);
}
export default App;
npm install expo-cli --global
expo init myReactNativeProject
cd myReactNativeProject
expo start
import React from 'react';
import { StyleSheet, Text, View } from 'react-
native';
export default function App() {
return (
<View>
<Text>Hello jaipur......!</Text>
</View>
);
}
Button with click
And
textBox
import React from 'react';
import {Text, View ,Button,TextInput} from 'react-native';
export default function App() {
const logIn=()=>{
alert('hello');
}
return (
<View style={{width:500,marginLeft:100}}>
<Text> Hello jaipur......!</Text>
<View style={{width:100,marginLeft:10}}>
<TextInput placeholder={'enter user name'}></TextInput>
<Button onPress={logIn} title='hitt!!!'/>
</View>
</View>
);
}

More Related Content

Similar to native 21.pptx

Python_Unit_2.pdf
Python_Unit_2.pdfPython_Unit_2.pdf
Python_Unit_2.pdfalaparthi
 
please please modify the code and update with whole code with modifi.pdf
please please modify the code and update with whole code with modifi.pdfplease please modify the code and update with whole code with modifi.pdf
please please modify the code and update with whole code with modifi.pdfrmwaterlife
 
RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0tutorialsruby
 
RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0tutorialsruby
 
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdfC++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdfrahulfancycorner21
 
Workshop 19: ReactJS Introduction
Workshop 19: ReactJS IntroductionWorkshop 19: ReactJS Introduction
Workshop 19: ReactJS IntroductionVisual Engineering
 
Chap-2 Classes & Methods.pptx
Chap-2 Classes & Methods.pptxChap-2 Classes & Methods.pptx
Chap-2 Classes & Methods.pptxchetanpatilcp783
 
vectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptx
vectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptxvectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptx
vectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptxVivekSharma34623
 
Read carefully. Im not sure if the point class is correct but postin.pdf
Read carefully. Im not sure if the point class is correct but postin.pdfRead carefully. Im not sure if the point class is correct but postin.pdf
Read carefully. Im not sure if the point class is correct but postin.pdfbharatchawla141
 
Ap Power Point Chpt2
Ap Power Point Chpt2Ap Power Point Chpt2
Ap Power Point Chpt2dplunkett
 
What is a constructorAns)A constructor is also type of method whi.pdf
What is a constructorAns)A constructor is also type of method whi.pdfWhat is a constructorAns)A constructor is also type of method whi.pdf
What is a constructorAns)A constructor is also type of method whi.pdfanandanand521251
 
Operator overloading
Operator overloadingOperator overloading
Operator overloadingBurhan Ahmed
 
Romero Blueprint Compendium
Romero Blueprint CompendiumRomero Blueprint Compendium
Romero Blueprint CompendiumUnreal Engine
 
Introduction to Client-Side Javascript
Introduction to Client-Side JavascriptIntroduction to Client-Side Javascript
Introduction to Client-Side JavascriptJulie Iskander
 

Similar to native 21.pptx (20)

Python_Unit_2.pdf
Python_Unit_2.pdfPython_Unit_2.pdf
Python_Unit_2.pdf
 
please please modify the code and update with whole code with modifi.pdf
please please modify the code and update with whole code with modifi.pdfplease please modify the code and update with whole code with modifi.pdf
please please modify the code and update with whole code with modifi.pdf
 
RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0
 
RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0RubyMiniGuide-v1.0_0
RubyMiniGuide-v1.0_0
 
Memory Management In C++
Memory Management In C++Memory Management In C++
Memory Management In C++
 
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdfC++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdf
 
Workshop 19: ReactJS Introduction
Workshop 19: ReactJS IntroductionWorkshop 19: ReactJS Introduction
Workshop 19: ReactJS Introduction
 
Chapter3
Chapter3Chapter3
Chapter3
 
Chap-2 Classes & Methods.pptx
Chap-2 Classes & Methods.pptxChap-2 Classes & Methods.pptx
Chap-2 Classes & Methods.pptx
 
vectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptx
vectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptxvectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptx
vectors.(join ALL INDIA POLYTECHNIC (AICTE)).pptx
 
Read carefully. Im not sure if the point class is correct but postin.pdf
Read carefully. Im not sure if the point class is correct but postin.pdfRead carefully. Im not sure if the point class is correct but postin.pdf
Read carefully. Im not sure if the point class is correct but postin.pdf
 
Vb script final pari
Vb script final pariVb script final pari
Vb script final pari
 
Ap Power Point Chpt2
Ap Power Point Chpt2Ap Power Point Chpt2
Ap Power Point Chpt2
 
03. Week 03.pptx
03. Week 03.pptx03. Week 03.pptx
03. Week 03.pptx
 
C code examples
C code examplesC code examples
C code examples
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
What is a constructorAns)A constructor is also type of method whi.pdf
What is a constructorAns)A constructor is also type of method whi.pdfWhat is a constructorAns)A constructor is also type of method whi.pdf
What is a constructorAns)A constructor is also type of method whi.pdf
 
Operator overloading
Operator overloadingOperator overloading
Operator overloading
 
Romero Blueprint Compendium
Romero Blueprint CompendiumRomero Blueprint Compendium
Romero Blueprint Compendium
 
Introduction to Client-Side Javascript
Introduction to Client-Side JavascriptIntroduction to Client-Side Javascript
Introduction to Client-Side Javascript
 

More from ajeetyadav541305

More from ajeetyadav541305 (6)

SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 
Python Development.pptx
Python Development.pptxPython Development.pptx
Python Development.pptx
 
PHP - Introduction.pptx
PHP - Introduction.pptxPHP - Introduction.pptx
PHP - Introduction.pptx
 
Java Framework Training.pdf
Java Framework Training.pdfJava Framework Training.pdf
Java Framework Training.pdf
 
C C++ .pdf
C C++ .pdfC C++ .pdf
C C++ .pdf
 
Java Training Institute In Jaipur.pdf
Java Training Institute In Jaipur.pdfJava Training Institute In Jaipur.pdf
Java Training Institute In Jaipur.pdf
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 

Recently uploaded (20)

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

native 21.pptx

  • 1. Native applications have the best performance, highest security, and best user experience.
  • 2. Display hello Variable bnane ke 3 tarike: Issue with var type Issue 1.Output will be undefine but error ana chahiye tha Becs js engine is code ko mence “Var x” ko top me patak deta hai This concept(variable declaration shift to top) is called variable Hoisting Hoisting is JavaScript's default behavior of moving declarations to the top. Note : Let n const type return error instead of undefine becs it will not hoist ‘Var ‘Issue 2.Also here redeclaration are allowed but in ‘let’ not allowed Output: here 30 is overriten with 60 But not to be an error while it is declared erlier too But gives error in ‘let’ redeclaration Output: Var issue 3.scoping issue output No issue with ‘let’ Output: Const cant be changed or redeclared
  • 3. Falsy values: Except above these all truthy values Output: Here this meance if name exist then return name else return ‘User’
  • 4. is a non-premitive data type in JS It will store values in key: value pair or Or using ‘object destructuring’ ,we will pull out or khinch liya from inside object For code cleaner or not repeted or U can rename as:
  • 5. Key and value can be with same name So ,it can be written direct : Js function can be called before definition due to function hoisting by js engine So this is an issue that Function ko ek constant me assign kr denge that can ve solved by using arrow function output parameterise or returning Single sttement definitin can be written without {} And return keyword for return Object passing as a function argument n destructing n callin Object destructuring direct inside parameter
  • 6. Returning object If is single line : Here we must give () becs js engine ko batana padega ki object hai na ki function ki body N we can get result There are 7 primitive data types: string, number, bigint, boolean, undefined, symbol, and null. Rteference type act as a pointer in c, If we change refrenced variable or object value then will be changed in actual object vaor variable value Here we change value of obj1 but changed obj2 too Premitive me copy variable me value change hone se actual variable me value koi change ni hota hai Output: output Same in array becs array is also reference type: Output:
  • 7. Actual way to copy an object using spread operator(...) Output: ... obj se chije bahar (unpack hona ) nikal jati hai n fir se ek object ke inside wrap kr diya As below : Spread operator is usefull when copy of another object values in new object with adding or replace more item Add item: Replace item: Output: Copy array usning spread (...) operator ... Sprd oprtr se unpack ho gya the wapis Se arr [] oprtr use krke pack kr diya
  • 8. Copy two arrays into another array output Array destructuring Array iteration: Using call back function in for each: Array of objects inside array:
  • 9. Change array objects value inside array: Array Map: Use for iterate array meanwhile returns a new array: Array Filter: Or in single line if contain singe line Dynamically remove items from array by passing parameter:
  • 10. Filter multiple values by given condition: Fetch method:returns promises that promiss to return sure or reject If return then output in array object fron json(http) response If single line return
  • 11. OOP
  • 12. import React from 'react'; import {Text, View } from 'react-native'; const App=()=> { return ( <View> <Text>Hello jaipur......!</Text> </View> ); } export default App; npm install expo-cli --global expo init myReactNativeProject cd myReactNativeProject expo start import React from 'react'; import { StyleSheet, Text, View } from 'react- native'; export default function App() { return ( <View> <Text>Hello jaipur......!</Text> </View> ); }
  • 13. Button with click And textBox import React from 'react'; import {Text, View ,Button,TextInput} from 'react-native'; export default function App() { const logIn=()=>{ alert('hello'); } return ( <View style={{width:500,marginLeft:100}}> <Text> Hello jaipur......!</Text> <View style={{width:100,marginLeft:10}}> <TextInput placeholder={'enter user name'}></TextInput> <Button onPress={logIn} title='hitt!!!'/> </View> </View> ); }