Type d'évaluation
Mise en situation réelle
Analyse
Intelligence Artificielle
Compétences ciblées
Scénario Technique
Context A utility library with math helper functions needs to be shared across multiple Node.js scripts in the same project. The Problem All utility functions are copy-pasted into every script that needs them, creating maintenance inconsistencies. Constraints Create a utils.js module exporting at least three functions. Import the module in another file using require() (CommonJS). Convert both files to use ES module syntax (import/export) and update package.json accordingly. Expected Deliverable A Node.js utility module demonstrating both CommonJS and ES module syntaxes, with correct package.json configuration for each approach.
Prêt à évaluer ce talent ?
Accédez à l'interface de test complète pour soumettre votre architecture ou votre code.