es6 Default Parameters in Javascript Get link Facebook X Pinterest Email Other Apps October 21, 2020 // es6 Defaul Parameters in Javascript const multi = (a, b=5) => { console.log(`the muliplication of two no is ${a*b}`);}multi(4); Get link Facebook X Pinterest Email Other Apps Comments
React Native FlatList August 29, 2020 App Name: Test Component Name: App.js ------------------------------------------------------------------------------------ import React , { useState } from 'react' ; import { StyleSheet , Text , View , FlatList , } from 'react-native' ; // class App extends Component { export default function App (){ const [ people , ] = useState ([ { name : 'ReactNative King' , id : '1' }, { name : 'ReactNative King' , id : '2' }, { name : 'ReactNative King' , id : '3' }, { name : 'ReactNative Kingaun' , id : '4' }, { name : 'ReactNative King' , id : '5' }, { name : 'ReactNative King' , id : '6' }, { name : 'ReactNative King' , id : '7' }, ]); // render() { return ( < View style = { styles . container } > < FlatList keyEtractor = { ( item ) => item . i... Read more
JavaScript Program to swap two numbers without Third variable October 14, 2020 // Program to swap two numbers without Third variable // a=5;b=10; // b=5;a=10; let a = 5 ; let b = 10 ; [ a , b ] = [ b , a ]; console . log ( `the value a is change ${ a } and value b is changed ${ b }.` ) Read more
Comments
Post a Comment