Could someone please optimize this code? My code:

14 views (last 30 days)
if (x === 0) {
y = y +
2;
console.log(y);
}
else {
y = y +
3;
console.log(y);
}

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!