Lazy Loading & Code Splitting

Which code demonstrates the correct way to handle errors in dynamic imports?
try {
  const module = await import('./feature.js');
  module.default();
} catch (error) {
  console.error('Failed to load module:', error);
  // Fallback behavior
  fallbackFeature();
}
Next Question (4/20)