This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const obj4 ={ | |
| firstName:'nikhil', | |
| lastName:'karkra', | |
| isTeaching: true, | |
| address:{ | |
| state:'victoria', | |
| city:'Melbourne' | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const obj4 ={ | |
| firstName:'nikhil', | |
| lastName:'karkra', | |
| isTeaching: true, | |
| greet:function(){ | |
| console.log("hi") | |
| } | |
| } | |
| const obj5 = Object.assign({},obj4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const obj4 ={ | |
| firstName:'nikhil', | |
| lastName:'karkra', | |
| isTeaching: true, | |
| greet:function(){ | |
| console.log("hi") | |
| } | |
| } | |
| const obj5 = obj4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const obj3 ={ | |
| firstName:'Nikhil', | |
| lastName:'karkra', | |
| isTeaching:true, | |
| greet:function(){ | |
| console.log("hi") | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---- adding keys Using dot operator ---- | |
| const obj2 ={} | |
| obj2.firstName = 'nikhil', | |
| obj2.lastName = 'karkra', | |
| obj2.isTeaching = true, | |
| obj2.greet = function(){ | |
| console.log("hi") | |
| } | |
| ---- adding keys Using brackets ---- | |
| const obj2 ={} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| handleComponentEvent:function (component, event, helper) { | |
| var params = event.getParam('arguments'); | |
| console.log(params.param1) | |
| if(params.param1 =='logoutComponent'){ | |
| alert('modal 1 submitted succesfully') | |
| } | |
| if(params.param1 == 'logoutComponent1'){ | |
| alert('modal 2 submitted succesfully') | |
| } | |
| <!-- required for Re-usable Modal --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import styled from 'styled-components' | |
| export const colors={ | |
| WHITE:'white', | |
| GREEN:'#4CAF50', | |
| BLUE:'#2196F3', | |
| ORANGE:'#ff9800', | |
| RED:'#f44336', | |
| GREY:'#e7e7e7', | |
| DARK_GREEN:'#46a049', | |
| DARK_BLUE:'#0b7dda', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function vowelsAndConsonants(s) { | |
| var vowel ='' | |
| var consonant='' | |
| for (let char of s){ | |
| if("aeiou".includes(char)){ | |
| vowel=vowel+char+"\n"; | |
| } else{ | |
| consonant=consonant+char+"\n"; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/94/three.min.js"></script> | |
| <script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script> | |
| <script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script> | |
| <a-scene embedded arjs="trackingMethod: best;"> | |
| <a-anchor hit-testing-enabled='true'> | |
| <a-plane | |
| src="http://hdwpro.com/wp-content/uploads/2016/06/HD-Free-Background.pngs" | |
| height="1.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {Component} from 'react' | |
| import {connect} from 'react-redux' | |
| class App extends Component { | |
| render() { | |
| console.log(this.props) | |
| return( | |
| <div> | |
| Ajax pending: {this.props.pending.toString()} | |
| </div> |