This file contains 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
asasds |
This file contains 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
public class BST{ | |
Node root; | |
public void addNode(String name, int key ) | |
{ | |
Node newNode= new Node(name,key); | |
if(this.root==null) | |
{ |
This file contains 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 { combineReducers } from 'redux'; | |
import BooksReducer from './reducers_book'; | |
import StudentReducers from './StudentReducers'; | |
const rootReducer = combineReducers({ | |
books:BooksReducer, | |
students:StudentReducers | |
}); | |
export default rootReducer; |
This file contains 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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { Provider } from 'react-redux'; | |
import { createStore, applyMiddleware } from 'redux'; | |
import App from './components/app'; | |
import reducers from './reducers'; | |
const createStoreWithMiddleware = applyMiddleware()(createStore); |
This file contains 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
export default ()=>{ | |
return [{title:'JS good parts'} | |
,{title:'Algorithmn'} | |
,{title:'Data'} | |
,{title:'Maths'} | |
,{title:'Algorithmn Advance '}] | |
} | |
This file contains 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 BookList extends Component | |
{ | |
renderList() | |
{ | |
return this.props.books.map((book)=>{ | |
return <li key={book.title} className="List-group-item"> |
This file contains 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
var i=10; | |
let j = 8; | |
function printNumber(){ | |
var i=90; | |
let j=10; | |
if(true) | |
{ | |
var i =100; | |
let j = 40; | |
console.log(`From Block scope i= ${i} ,j=${j}`); |
This file contains 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 laptop = { | |
name: 'MacBook Pro', | |
screen: { | |
size: 17, | |
isRetina: true | |
} | |
}; | |
const laptopClone = { | |
...laptop | |
}; |
This file contains 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 laptopDeepClone = { | |
...laptop, | |
screen: { | |
...laptop.screen | |
} | |
}; | |
console.log(laptop === laptopDeepClone); | |
console.log(laptop.screen === laptopDeepClone.screen); |
This file contains 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
{ | |
scopeName:global, | |
varName:scope, | |
value:"I am global" | |
} | |
{ | |
scopeName:whatismyscope, | |
varName:scope, | |
value:"I am just a local" | |
} |
OlderNewer