1 Pertemuan 3 JavaScript
2 Conditional If statement If else If , else if, else statementSwitch statement
3 If statement if (condition) { code to be executed if condition is true This example demonstrates the If statement.
If the time on your browser is less than 10, you will get a "Good morning" greeting. if (condition) { code to be executed if condition is true } { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://slideplayer.com/12303682/73/images/3/If+statement+if+%28condition%29+%7B+code+to+be+executed+if+condition+is+true.jpg", "name": "If statement if (condition) { code to be executed if condition is true", "description": "