I tried to explain the notion of pointwise/uniform convergence of functions to undergrad students whose only background is metric spaces.
Let $\{f_n:I\rightarrow \mathbb{R}\}$ be a sequence of continuous/bounded functions. We say $(f_n)$ converge uniformly/pointwise to a function $f:I\rightarrow \mathbb{R}$ if some conditions are satisfied.
I thought it would be easier for students to understand the difference if I show the difference between uniform and pointwise convergence as convergence in two different metrics.
Let $X$ be a set. Fix a metric $d:X\times X\rightarrow \mathbb{R}$ in $X$. Let $a:\mathbb{N}\rightarrow X$ be a sequence in $X$, which we denote, for convinience, by $(a_n)$. We say that the sequence $(a_n)$ in $X$ converges to an element $a\in X$, if, given $\epsilon>0$ there exists $N\in \mathbb{N}$ such that $d(a_n,a)<\epsilon$ for all $n\geq N$.
In this situation $f_n\in \mathbb{R}^{I}$ for each $n\in \mathbb{N}$. There is a metric on the subset, of bounded functions on $I$, of the set $\mathbb{R}^I$. The metric is given by $d_{\infty}(f,g)=\sup_{x\in I} |f(x)-g(x)|$ for $f,g$ bounded in $I$.
So, with this metric, $(f_n)$ converge to $f$ given $\epsilon>0$, there exists $n\in \mathbb{N}$ such that, $d(F_n,f)<\epsilon$. By definition, $d_{\infty}(f_n,f)=\sup_{x\in I} |f_n(x)-f(x)|$. So, given $\epsilon>0$, there exists $N\in \mathbb{N}$ such that $|F_n(x)-f(x)|<\epsilon$ for all $x\in I$.
This is precisely the definition of uniform convergence of functions. A sequence of functions $(f_n)$ in $B(I,\mathbb{R})$ is said to be uniformly convergent to an element $f$ in $B(I,\mathbb{R})$ if it is convergent to $f$ in the metric $d_{\infty}$.
Question : Can I introduce pointwise convergence in similar manner (with out talking about topology)? I want to say $(f_n)$ converges to $f$ pointwise in $B(I,\mathbb{R})$ if and only if $(f_n)$ converges to $f$ in $B(I,\mathbb{R})$ with metric $d$ on $B(I, \mathbb{R})$. Does such a metric exits?
To talk about uniform convergence, I could use the sup metric on $B(I,\mathbb{R})$. To talk about pointwise convergence, what metric should I use? I have no hope to get such a metric. Just want to confirm as I have learnt this long back.
We may identify the set $B(I,\mathbb R)$ with a subset of the infinite product $P = \prod_{t\in I} \mathbb R_t$, where all $\mathbb R_t = \mathbb R$. In fact, each function $f : I \to \mathbb R$ corresponds to the point $(f(t))_{t\in I} \in P$.
Now give $P$ the product topology induced from its factors $\mathbb R_t$. Then a sequence $(f_n)$ converges pointwise to $f$ iff $(f_n)$ converges to $f$ with respect to this topology ("componentwise convergence").
Your question is therefore when $P$ is a metrizable space.
If $I$ is finite with $n$ elements, then $P$ can be identified with $\mathbb R^n$ and you get the desired metric. Also if $I$ is countable infinite $P$ turns out to be metrizable. See for example Show that the countable product of metric spaces is metrizable.
However, if $I$ is uncountable, then $P$ is not metrizable. In fact, it is easy to see that it is not first countable.