« first day (2397 days earlier)      last day (1720 days later) » 

DRP
12:55 AM
Been checking about null on SO but this is still not working for me:
```var x=5;
var y=null;
if( (x||y) === null ){
console.log('no match?'); //no
}

if(y===null){
console.log('bingo!')//
}```
 
1 message moved from JavaScript
 
DRP
Been checking about null on SO but this is still not working for me:
```var x=5;
var y=null;
if( (x||y) === null ){
console.log('no match?'); //no
}

if(y===null){
console.log('bingo!')//
}```
 
1 message moved from JavaScript
1 message moved from JavaScript
 
DRP
var x=5;
var y=null;
if( (x||y) === null ){
console.log('no match?'); //no
}

if(y===null){
console.log('bingo!')//
}
 
1 message moved from JavaScript
 
 
8 hours later…
 
3 hours later…
12:04 PM
Using react router like this:
<Link
to={`/orderDetail/${order.id}`}
>
<td>{order.id} </td>
</Link>
 
1 message moved from JavaScript
 
 
3 hours later…
 
1 hour later…
6:35 PM
💤
 
7:44 PM
render() {
return (
<div>
<input type="text" value={this.state.query} onChange={this.search} style = {{ width: '100%', paddingLeft: '8px', paddingTop: '4px' }} placeholder={'Search'} />
<ul>
{this.state.results.map((page, index) => (
<li tabIndex={index} key={page.id} >
<Link to={"/" + page.path}>{page.title}</Link>
</li>
))}
</ul>
</div>
)
}
 
1 message moved from JavaScript
 
DRP
javascript
anyone knonw why I can't check variables in an OR statement against a null?
(a||b)=== null //not working
a===null || b ===null //working
 
8:53 PM
1 message moved from HTML / CSS / WebDesign
 

« first day (2397 days earlier)      last day (1720 days later) »