September 2019
Beginner to intermediate
494 pages
13h
English
PyCharm offers the feature that displays parameter names when methods, functions, or classes are called, which can improve the readability of our code considerably. Let's consider the script.js file in our current code folder:
class Person { constructor(name) { this.name = name; } sayHi() { alert("Hello, I'm " + this.name) }}
This file contains the same Person class that we saw in the example in the previous section. Now, in a new line in this file, we will initialize a new Person instance by entering the following code:
let p = new Person("Quan");
You will see that as you type in the initialization of the new Person instance, PyCharm automatically reformats the appearance of our current line of code:
Read now
Unlock full access