The object of this exercise is to write a custom JavaScript logger. The only markup needed will be a div with an ID attribute of “result” - where the logger will append its output. Write an object that has the following characteristics: 1. It should be a function that accepts any log level defined at runtime (e.g. debug, warn, etc.) and a corresponding color to apply to the log message (e.g. gray, orange, red, etc.) as arguments. 2. This function should return a new function that takes a message as its argument and appends it to the resultant DOM element. Use this to create loggers for debug, warn, and info levels. 3. Each appended log message should be prepended by the name of its associated level and displayed in the corresponding color. Note: Do NOT hard code the log levels, colors, or resultant DOM element information in the JavaScript functions. Example Output: [debug] This is my debug message!!!! [error] Whoops we got an error! [myCustomLog] This is my custom output log message.
Senior Front End Developer Interview Questions
1,305 senior front end developer interview questions shared by candidates
We went over JavaScript and JQuery details and I was asked how I utilized those skills in various applications.
Core Javascript, online coding questions on javascript, React js internal Fundamentals, system design for File storage application such as Dropbox, Google drive etc.
Assignment was easy. To create a event booking portal with minor validations
Create a basic frontend for payment tracking where the API was provided and needed to show the list of payments and on click of the payment show more details about the transaction.
About myself. My background My career as a programmer
"Build this UI widget from scratch in Codepen while I watch you do it."; "You have 25 minutes total to make it work"; "You stopped typing. Tell me what are you thinking"; "We have 5 more minutes" ...
What does it mean when we say that Javascript is a multiparadigm language? Have you checked the latest React released features (React 18)? Are you familiar with them? What are your thoughts in Typescript?
Introduce yourself, salary expectation and HR questions
How to remove duplicate items from array
Viewing 811 - 820 interview questions