Anonymous Function In JavaScript Get link Facebook X Pinterest Email Other Apps October 30, 2020 file name: main.js----------------------------------------------------------------------var laptop= function(){ console.log("This is anonymous function ");}laptop(); Get link Facebook X Pinterest Email Other Apps Comments
JavaScript Arrays and Objects September 29, 2020 ----------------------------------------------------- index.html ---------------------------------------------- index.html tut6.js <! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < title > Document </ title > </ head > < body > < h1 > This is tutorial </ h1 > </ body > < script src = "tut6.js" ></ script > </ html > --------------------------------------------------------------------------------- ------------------------------------------------ tut6.js ----------------------- const marks = [ 12 , 3 3 , 5 4 , 5 3 , 8 3 , 9 5 ]; const fruits = [ 'orange' , 'apple' , 'Pineapple' ]; const arr = new Array ( 23 , 123 , 21 , 'Orange' ); console . log ( marks ); console . log ( marks [ 2 ]) ... Read more
es6 Default Parameters in Javascript 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 ); Read more
React Native Horizontal ScrollView August 27, 2020 App Name: Test Component Name: App.js ------------------------------------------------------------------------------------------------------------------- /* eslint-disable prettier/prettier */ import React , { Component } from 'react' ; import { StyleSheet , Button , ScrollView , Text , View , } from 'react-native' ; class App extends Component { onPressButton () { alert ( 'You Clicked ReactNative King button ' ) } render () { return ( < ScrollView horizontal = {true} style = { StyleSheet . container } > < Text style = { { fontSize : 25 , padding : 20 } } > Horizontal ScrollView </ Text > < View style = { [{ width : 230 , height : 80 , padding : 20 }] } > < Button onPress = {this . onPressButton } title = "Click Me" color = "red" /> </ View > </ ScrollView > ) } } const style... Read more
Comments
Post a Comment