Valentin Kononov
Full Stack Developer, Speaker
What it means to have profession - programmer
by Valentin Kononov and Kseniia Kononova
Programming is when you tell machine to do something
Sequence of things to do
Instructions to machine
# PRESENTING CODE
// code which buys new skin in roblox
function buyNewRobloxSkin(user, skin) {
// lets check if we have enough ROBUX
if (user.balance.robux >= skin.cost) {
// we have enough! let's add new skin to user collection
user.skins.push(skin)
} else {
// no money - tell user about it
const missingMoney = skin.cost - user.balance.robux
alert("You cannot buy it now, need {missingMoney} more ROBUX")
}
}
# PRESENTING CODE
# CHAPTER 2
# CHAPTER 2
# CHAPTER 2
By Valentin Kononov