linkedin-skill-assessments-quizzes icon indicating copy to clipboard operation
linkedin-skill-assessments-quizzes copied to clipboard

Wrong answer in Node Q.32

Open ed3899 opened this issue 1 year ago • 2 comments

I'm submitting an ISSUE: please check one with "x"

  • [x ] Missed questions/answers

Q32. You have a script.js file with the single line of code shown here. What will be the output of executing script.js with the node command? console.log(arguments);

  • [x] an object representing an array that has five elements

This is the output on node. Notice the question, you're running this in the backend and without typescript.

node script.js

[Arguments] {                                                                                                
  '0': {},                                                                                                   
  '1': [Function: require] {                                                                                 
    resolve: [Function: resolve] { paths: [Function: paths] },                                               
    main: Module {
      id: '.',                                        
      path: '/home/vagrant/node-projects/test',
      exports: {},                                                                                           
      filename: '/home/vagrant/node-projects/test/index.js',
      loaded: false,
      children: [],
      paths: [Array]                                  
    },                                                
    extensions: [Object: null prototype] {
      '.js': [Function (anonymous)],
      '.json': [Function (anonymous)],...

ed3899 avatar May 23 '23 15:05 ed3899

@Ebazhanov I would like to solve this issue , Please assign it to me

alienishi avatar Oct 05 '23 19:10 alienishi

@Ebazhanov I would love to add more the above solution. Please assign this to me

aryan-rohit avatar Oct 06 '23 19:10 aryan-rohit