Computer Science · JavaScript
निम्नलिखित जावास्क्रिप्ट (JavaScript) कोड स्निपेट पर विचार कीजिए: let x = 10; let x = 'Hello'; var y = 30; var y = 'Hi'; चर (variables) x और y के पुनर्घोषणा (redeclaration) के संबंध में निम्नलिखित में से कौन सा कथन सही है?
- 1चर x को पुनर्घोषित किया जा सकता है, लेकिन चर y को पुनर्घोषित नहीं किया जा सकता है।
- 2चर x को पुनर्घोषित नहीं किया जा सकता है, लेकिन चर y को पुनर्घोषित किया जा सकता है।✓
- 3चर x और y दोनों को पुनर्घोषित नहीं किया जा सकता है।
- 4चर x और y दोनों को पुनर्घोषित किया जा सकता है।
सही उत्तर देखें
चर x को पुनर्घोषित नहीं किया जा सकता है, लेकिन चर y को पुनर्घोषित किया जा सकता है।
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on JavaScript?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · JavaScript