COMPUTER SOFTWARE
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
x = 10;
|
|
x++;
|
|
x += 5;
|
|
x = y;
|
Detailed explanation-1: -For example, if a syntactic sugar for the unskilled programmer is a command like “make X equal to one” and the skilled programmer shortcut is “X = 1, ‘’ both of these could be considered syntactic sugar in their own ways.
Detailed explanation-2: -Syntactic sugar is when a language or library provides an easier way to write and read code. This way we can write HTML without worrying about calling React. createElement() every time we want to create a new element. We also use a new element called a <React.
Detailed explanation-3: -In a handful of words, syntactic sugar is a syntax that allow developers to write code easier, in a “sweety” way, therefore, it gives you the luxury of not knowing how the system works. You better know that syntactic sugar is not only python related only, (ref) for more.