Could someone please optimize this code? My code:

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

Products

Tags

Asked:

on 8 Jan 2021

Community Treasure Hunt

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

Start Hunting!