- (==)(!=) (==)(!=) considers the value but not the type
Example :
0=='0' //==> True
- (===)(!==)
| arrayDayEvents.length == 0 | |
| ? (this.noEvent = true) | |
| : (this.noEvent = false) | |
| Shorter Version | |
| this.noEvent = arrayDayEvents.length == 0 | |
| init(){ | |
| that =this; | |
| async function run() { | |
| await that.createIsoFromCurrentDay() | |
| await that.checkIfEvent() | |
| await that.getOlderEvent() | |
| await that.orderEventsByTime() | |
| } | |
| run() | |
| } |
| $ git remote rm origin | |
| $ git remote add origin [email protected]:aplikacjainfo/proj1.git | |
| $ git config master.remote origin | |
| $ git config master.merge refs/heads/master |
Example :
0=='0' //==> True
Const ==> Constant : Cannot be reassign. Example :
const name='Romain';
name='Thomas'
console.log(name) ==> Error
Const cannot be reassigned but can be manipulated
computed_property() {
this.variable = new Date(this.currentUtc)
return this.variable
}
const variable2 = this.computed_property()OR more simply
computed_property() {import dayjs from 'dayjs'
var utc = require('dayjs/plugin/utc')
dayjs.extend(utc) let formData = new FormData();
formData.append('input_file', fs.createReadStream('your file path'));
formData.append('parameter_1', 'your parameter');
const getData = async url => {
try {
const res = await axios.post(url, formData, {