The Browser’s F12 Console page
can be accessed with the console.log command
1 | console.log('Hello World'); |
1 | console.log("Error=" + apiError.error); |
The backtick is a special text delimiter. You can see, ${} is used to insert a variable into the string without setting up special logic like the following
1 | console.log(`Error=${apiError.error}`); |
You can script out an object with the following type of logic
1 | alert(JSON.stringify(initData)); |