JavaScript LinkedIn оценка
Q1. Which operator returns true if the two compared values are not equal?
Q2. How is a forEach statement different from a for statement?
Q3. Review the code below. Which statement calls the addTax function and passes 50 as an argument?
Q3. How would you use this function to find out how much tax should be paid on $50?
Q4. Which statement is the correct way to create a variable called rate and assign it the value 100?
Q5. Which statement creates a new Person object called “student”?
Q6. When would the final statement in the code shown be logged to the console?
Q6. When would ‘results shown’ be logged to the console?
Q7. You’ve written the code shown to log a set of consecutive values, but it instead results in the value 5, 5, 5, and 5 being logged to the console. Which revised version of the code would result in the value 1, 2, 3 and 4 being logged?
Undefined