Posted: February 5th, 2023
Activity:
For a brief introduction to this widely used programming language, review JavaScript Introduction , JavaScript Syntax , JavaScript Statements , JavaScript Variables , and JavaScript Data Types . Then go to the Try It Yourself tutorial. Change the text in the code window to appropriately change the output to “Hello World.” Hello World is every programmer’s first program, so pat yourself on your back when you complete this task. Click the “Click Me!” button on the right-hand pane and observe what happens.
Now take out any item of the code, for example the ” ” around “Hello World!” or </h2> (you must click the Run button after a change is made). Notice what happens to the output and check to see if the code still works.
Make sure to put back whatever was removed and then change the text in the code to say anything you would like. Enjoy your first programming experience.
Submit screenshots of three different code changes that you tried and the results.
SOLUTION
A programming language is a human-readable language that provides instructions to a computer, allowing developers to create and execute software applications. Examples of programming languages include C, Java, Python, JavaScript, and many others. Each language has its own syntax, features, and purposes, making them suitable for different types of tasks and applications.
JavaScript is a high-level, dynamic, and interpreted programming language that has a syntax loosely based on C. Some of the basic syntax elements of JavaScript include:
var, let, or const keywords.+, -, *, /, %, and others.if-else statements and loops (for, while, do-while) to control the flow of a program.Place an order in 3 easy steps. Takes less than 5 mins.