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
npm install -g node-gyp |
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
sfdx plugins:install @salesforce/lwc-dev-server |
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 Database.QueryLocator start(Database.BatchableContext bc) { | |
return Database.getQueryLocator('SELECT Id, Count__c FROM Product_Part__c ORDER BY Product__c'); | |
} |
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 Database.QueryLocator start(Database.BatchableContext bc) { | |
return Database.getQueryLocator('SELECT Id, Count__c FROM Product_Part__c'); | |
} |
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 void execute(Database.BatchableContext bc, List<SObject> records) { | |
List<Product_Part__c> productParts = (List<Product_Part__c>) records; | |
for(Product_Part__c productPart : productParts) { | |
productPart.Count__c = 100; | |
} | |
update productParts; | |
} |
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
class Car { | |
#color | |
constructor(name, speed, color) { | |
this.name = name; | |
this.speed = speed; | |
this.#color = color; | |
} |
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
class Car { | |
constructor(name, speed) { | |
this.name = name; | |
this.speed = speed; | |
} | |
showSpeed() { | |
console.log(this.speed); | |
} |
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
function Car(name, speed) { | |
this.name = name; | |
this.speed = speed; | |
} | |
Car.prototype.showSpeed = function() { | |
console.log(this.speed); | |
} | |
let audi = new Car('audi', 200); |
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
let features = ['Great Speed', 'Good Color', 'Comfort', 'Good Looks']; | |
let moreFeatures = ['Great Mileage', 'Amazing Design', ...features]; | |
console.log(moreFeatures); |
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
let features = ['Great Speed', 'Good Color', 'Comfort', 'Good Looks']; | |
let moreFeatures = ['Great Mileage', 'Amazing Design']; | |
features.push(...moreFeatures); |