Programming Reading Assignment

  1. A program is a set of instructions for a computer to execute.

  2. It is important to keep a clear structure to make it easy for yourself and other programmer to work on your program, though you need to stay open minded to different and new approaches to solve occurring problems.

  3. A programming language makes it possible for humans to communicate with computers.

  4. There is no direct relationship. JavaScript took on the name due to Java’s popularity back then.

  5. ECMAscript and JavaScript are two names for the same language.

1 Like
  1. What is a program?

A program is a set of instructions in a computer that set out what is to be done.

  1. What can you say about complexity in programming?

Programs are complex. To understand programming one must take it apart and understand the complexity. In fact it is composed of simple instructions and the complexity is when you look at it altogether and see the entirtety of it.

  1. What function do programming languages have?

They provide a method of instructing a computer to perform certain functions. This means they have various words and phrases that perform functions and by using those words and phrases in a specific order one can instruct a computer to perform certain activities.

  1. What is the relationship between Java and Javascript?

Java is a language used for programming computers and JavaScript is a script used to program web pages. The names are similar due to the hitching of a ride by JavaScript even though they are different languages used for different purposes.

  1. What is ECMAScript and how is it related to JavaScript?

ECMAScript is basically JavaScript. It was the original name for it.

1 Like

What is a program?

A program is a set of precise instructions telling a computer what to do.

What can you say about complexity in programming?

The main challange in prgramming is keeping programs and their complexity under control.
“The art of programming is the skill of controlling complexity.”

What function do programming languages have?

A good programming language helps the programmer by allowing them to talk about the actions that the computer has to perform on a higher level.
It helps omit details, provides convenient building blocks, allows you to define your own building blocks , and makes those blocks easy to compose.

What is the relationship between Java and Javascript?

JavaScript has almost nothing to do with the programming language named Java. The similar name was inspired by marketing considerations rather than good judgment.

What is ECMAScript and how is it related to Javascript?

ECMAScript and JavaScript can be used interchangeably—they are two names for the same language.
The ECMAScript standard is the standard document that was written to describe the way JavaScript language should work.

1 Like
  1. What is a program?
    a set of precise instructions telling a computer what to do.
  2. What can you say about complexity in programming?
    even tough the basic rules are simple the program languages based on this simple rules can and will get really complex and is up to us to try to keep it simple and find our way trough
  3. What function do programming languages have?
    it makes it easier for humans to instruct the computer using words that make sense to us just like a real language
  4. What is the relationship between Java and Javascript?
    just marketing, nothing else
  5. What is ECMAScript and how is it related to Javascript?
    it was a document describing the way Java should work, in terms of programing languages , they are the same , it´s a standard
1 Like

Hey guys.

I solved the first JS- excercise , but i have issue with one specific code …

  1. Print with text formatting
    a) Write a s cript w here you define t wo f loating-point v ariables: l ength a nd w idth.
    Give these variable values 1 0,101 a nd 3,843.
    b) console.log the following statement using print formatting and the two
    variables:
    The rectangle i s 10.101 cm long and 3 .843 cm wide.

Solution:
var length = 1 0.101;
var width = 3 .843;
console. log( The rectangle is $ {length} cm long and $ {width} cm wide.) ;

When I input solution i get the same output without variables.

i did it like this before checking solution-

var lenght = 10.101;
var width = 3.843;
console.log(" The rectangle is" ,lenght, " cm long, and", width, “cm wide”);

Output — The rectangle is 10.101 cm long, and 3.843 cm wide

So why the input in the solutions dosnt provide me with ecpected output ?

thank you in advance

Hey @Pusa_Os

You have to remove the white spaces between $ and {}

var length = 10.101;
var width = 3.843;
console.log(`The rectangle is ${length} cm long and ${width} cm wide.`) ;

Just rapidly tested on google console

Screenshot 2021-02-09 at 12.55.37

Cheers,
Dani

Hey thanks for replying, the spaces were here just cause of copy paste .

var length = 10.101;
var width = 3.843;
console.log(’ The rectangle is ${length} cm long and ${width} cm long ');

and still the same thing happens…

There is something wrong with me or my Laptop…
when i write the code myself it doesn’t approve ‘$’ . now i Copy/paste and remove blank space and it suddenly approve … haha

1 Like
  1. A program is a problem solving process explained to a computer in a way it can understand and act.

  2. Due to the complexity in programming it’s Key to work disciplined and clean, commenting on your Code and formatting it good. Else you’re lost one Day

  3. Programming languages allow a programmer to communicate to the complier, what he wants the Computer to do…

  4. None, besides the Name :wink:

  5. Javascript (formerly Macha, LiveScript) was released to the press in 1995 by Netscape. The EMCA International standardized it in 97 as a general purpose programming language(ECMA262)

2 Likes
  1. a set of instructions a computer is able to interpret/execute

  2. a program can easily come to a point where it’s complexity confuses even its creator. Trying to keep your code clean and readable is not only best practice but necessary, in order to a) let others be able to understand your code and work on it b) reduce the possibility of misfunctions (that could be used by malicious people),…

  3. Machines directly understand only instructions in binary code. That’s why clever people invented some additional less complex layer for humans (the programming languages) whose code at the end is being converted into binary code.

  4. there is no relationship, it has just been a marketing motivated choice to call it Javascript

  5. ECMAScript is a standard document that was was created by Ecma International Organization
    in order to describe the way the JavaScript language should work. For this reason ECMAScript and JavaScript are considered to be the same thing.

2 Likes
  1. A set of instructions telling a computer what to do.
  2. It is difficult, the fundamental rules are simple, but programs built on top of it have their own rules, creating complexity.
  3. They act as a way for humans to read and write commands in order for computers to do complex tasks.
    4.No relation. Javascript was used as a marketing ploy to gain popularity off the coat tails of the increasingly popular programming language Java.
  4. ECMAScript is the the same language as Javascript, just 2 different names for the same thing.
2 Likes
  1. What is a program?
    A set of instructions to make a computer peform many tasks
  2. What can you say about complexity in programming?
    It is easy to get lost. One could get lost even in there own code
  3. What function do programming languages have?
    A programming language is a formal language comprising a set of instructions that produce various kinds of output . Programming languages are used in computer programming to implement algorithms. Most programming languages consist of instructions for computers.
  4. What is the relationship between Java and Javascript?
    They have nothing to do with each other. Jave had to relation to java script
  5. What is ECMAScript and how is it related to Javascript?
    uropean Computer Manufacturers Association

Ecma is a standards organization for information and communication systems. It acquired its current name in 1994, when the European Computer Manufacturers Association (ECMA) changed its name to reflect the organization’s global reach and activities.

2 Likes

1.Program is a set of instructions that the computer executed.
2.We should avoid the complexity and keep the code simple to understend
3.They provide for us a bettewr and a simple way to interact with the computer
4.no relationship…the name JavaScript was inspired only for marketing considerations ! :slight_smile:
5.ECMAscript its another name for Javascript they can used interchangeably …

2 Likes
  1. What is a program?

Programme is a set of actions that communicates with computer.

  1. What can you say about complexity in programming?

Aim to keep programming as simple as possible. Of course more advanced options will be more complex.

  1. What function do programming languages have?

Programming language is used to instruct computers.

  1. What is the relationship between Java and Javascript?

No relation at all. They are different languages.

  1. What is ECMAScript and how is it related to Javascript?

ECMAScript is the same language as Javascript.

2 Likes

It is very difficult to define program in a short way for me.
It is a piece of text set up for catching the potentially huge strenght of a computer. Starting from simple calculation actions capacity of its components, it can create a solution building on top in order to interconect these and receiving the result of a complex or multiple operation.

The fundamentals of programming can be easy to understand but when you coding it’s easy to get very complex result where you or other developer after you can lost the control and possibilty to set in properly.

Allow the programmers to create code that computers can execute and do what they want. And at the same time a code that the programmers can easily read.
A good programming language helps the programmers with a large avaiability options and great flexibility by allowing them to talk about the actions that the computer has to perform on a higher level, omit details, provides convenient building blocks.

JavaScript has almost nothing to do with the programming language named Java. When JavaScript was being introduced someone thought it was a good idea to try to ride along on the success of Java. And that’s it.

In practice, the terms ECMAScript and JavaScript can be used both, they are two
names for the same language. After the adoption of JavaScript outside of Netscape, was written a standar document to describe how the language should work so the various pieces of software could have the same language; This is called the ECMAScript standard.

1 Like
  1. It Is a bunch of instructions that are telling a computer what to do.

  2. Without trying to keep the program simple, it can become very complex very quickly.

  3. The function of a programming language is to instruct the computer.

  4. Javascript has nothing to do with Java. It has Java in the name because of marketing purposes.

  5. ECMAScript is another name for the same programming language. They can be used interchangeably. ECMAScript was created to describe how Javascript should work.

3 Likes
  1. A program is a written set of instructions that direct a computer to carry out tasks
  2. It can be a blessing and a curse. Complexity can allow you to automate more and more complicated tasks but can also over burden the CPU and cause confusion for the programmer. An overly complex program can have errors that compound on errors and become very difficult to correct.
  3. Programming languages allow users to conceptualize and write instructions in ways that are easier for the human brain to comprehend and follow. They reduce obscurity and remove many of the tedious and mundane aspects of coding. They also reduce the time it takes to write a program by eliminating repetitive steps and replacing them with commands and functions.
  4. About as much as there is a relationship between Bitcoin and Dogecoin.
  5. ECMA Script is standardized JavaScript. They are synonymous.
1 Like
  • What is a program?
    A program is a list of instruction

  • What can you say about complexity in programming?
    Complexity is not bad by default, but it will make it harder to understand for others and errors are harder to solve

  • What function do programming languages have?
    It a easy way for humans to communicate/interact with the operating system

  • What is the relationship between Java and Javascript?
    There is no direct relationship between Java and Javascript

  • What is ECMAScript and how is it related to Javascript?
    ECMAScript is a programming language. Javascript is the same thing as ECMAScript only is Javascript more known

1 Like

While reading try answering the following questions:

  1. What is a program? - A program is a piece of typed text that directs a computer to do something. It also the data in the computer’s memory and it controls the actions of performed on this same memory. It is also a building of thought.
  2. What can you say about complexity in programming? - A program can be built whereby in time said program can grow a lot in size and complexity making it difficult for even the creator to maintain control. Keeping these programs under control is the main problem of programming. There is an art to this process and that is the skill of controlling complexity. To better control this complexity, many programmers believe that utilizing only a small set of well-understood techniques can help simplify the process. Best practices, so to speak.
  3. What function do programming languages have? - Programming languages can help us to take care of the uninteresting details for us. A good language helps the programmer by allowing them to talk about the actions that the computer has to perform on a higher level.
  4. What is the relationship between Java and Javascript? - There is no direct relationship between the two languages, but the name ‘Javascript’ comes of the coat tails of Java as someone back in the day thought it would be a good idea for marketing purposes to have a very similar name.
  5. What is ECMAScript and how is it related to Javascript? - After the adoption of Javascript outside of Netscape, the EMCAScript standard was created to show the way the Javascript language should work. Both EMCAScript and Javascript are the same langauges and can be used interchangeably. Different versions evolve meaning that the browsers need to keep up to support every updated language feature.
1 Like
  1. What is a program?

Is a set of instructions given to a computer to complete a specific task

  1. What can you say about complexity in programming?

Keep it simple

  1. What function do programming languages have?

It is so people can easily communicate and write programs

  1. What is the relationship between Java and Javascript?

Other than the name as a marketing ploy and both being programing languages there is no relation

  1. What is ECMAScript and how is it related to Javascript?

ECMAScript is actually another name javascript and is the universal standard

1 Like