Logic vs Syntax
Logic
is the order in which the program runs, the decisions made within the program, and how you structure the different parts of the program.
Syntax
is the actual programming language, the very specific set of words and symbols you write to make the program work.
Example
Logic
create a number variable
Syntax – in JavaScript
let score = 0;
Syntax – in C#
int score = 0;
What Is Pseudocode
A syntax very close to human language that helps you become a better programmer by planning ahead and thinking about the logic of your program before writing any code.
Example
Get two integer values from a user and output the sum of those numbers.
prompt user for number
set num1 to user_input
prompt user for number
set num2 to user_input
set sum to num1 + num2
print sum