Complete Proof:
To obtain a contradiction assume that $ f $ is not uniformly continuous on $ [a,b] $. Then there exists $ \epsilon _{0}>0 $ such that for any $ \delta >0 $, there exist $ x_{\delta},y_{\delta}\in [a,b] $ such that $ \vert x_{\delta}-y_{\delta}\vert <\delta $ and $ \vert f(x_{\delta})-f(y_{\delta})\vert \geq \epsilon _{0} $.
Therefore for any $ n\in \mathbb{N} $, there exists $ x_{n},y_{n}\in [a,b] $ such that $ \vert x_{n}-y_{n}\vert <1/n $ and $ \vert f(x_{n})-f(y_{n})\vert \geq \epsilon _{0} $. (A)
Since for any $ n\in \mathbb{N} $, $ x_{n}\in [a,b] $ we have $ (x_{n}) $ is a bounded sequence. Then by Bolzano-Weieistrass theorem, $ (x_{n}) $ has a convergent sub sequence $ (x_{n_{k}}) $. Then there exists $ u\in \mathbb{R} $ such that $ (x_{n_{k}}) $ converges to $ u $.($ u\in [a,b] $ since $ [a,b] $ is complete)
Now we need to show $ (y_{n_{k}}) $ also converges to $ u $.
Let $ \epsilon >0 $ be given. Then there exists $ K_{\epsilon}\in \mathbb{N} $ such that for each $ k>K_{\epsilon} $, $ \vert x_{n_{k}}-u\vert <\dfrac{\epsilon}{2} $. Observe that there exists $ K_{0}\in \mathbb{N} $ such that for each $ k>K_{0} $, $ n_{k}>\dfrac{2}{\epsilon} $. Choose $ K=\max \{K_{\epsilon},K_{0}\} $. Now let $ k>K $. Then $$ \vert y_{n_{k}}-u\vert =\vert y_{n_{k}}-x_{n_{k}}+x_{n_{k}}-u\vert \leq \vert y_{n_{k}}-x_{n_{k}}\vert + \vert x_{n_{k}}-u\vert <\dfrac{1}{n_{k}}+\dfrac{\epsilon}{2} < \dfrac{\epsilon}{2}+\dfrac{\epsilon}{2}=\epsilon .$$ Therefore $ (y_{n_{k}}) $ converges to $ u $.
Since $ f $ is a continuous function on $ [a,b] $ we have that both sequences $ f(x_{n_{k}}) $ and $ f(y_{n_{k}}) $ converge to $ f(u) $. Then obviously the sequence $ (f(x_{n_{k}})-f(y_{n_{k}})) $ converges to $ 0 $.
Hence there exists $ K_{\epsilon _{0}}\in \mathbb{N} $ such that for each $ k>K_{\epsilon _{0}} $, $$ \vert f(x_{n_{k}})-f(y_{n_{k}})-0\vert = \vert f(x_{n_{k}})-f(y_{n_{k}})\vert < \epsilon _{0}. $$ Now substitute $ {n_{k}} $ for $ n $ in the statement (A). Then we have that $$ \vert f(x_{n_{k}})-f(y_{n_{k}})\vert \geq \epsilon _{0}. $$ But this is a contradiction and hence $ f $ is uniformly continuous on $ [a,b] $. $ \square $
Note : Since $ f $ is a continuous function on $ [a,b] $, the only thing we can say is there exists $ \epsilon _{0}>0 $ such that for any $ n\in \mathbb{N} $, there exist $ x_{n},y_{n}\in [a,b] $ such that $ \vert x_{n}-y_{n}\vert <1/n $ and $ \vert f(x_{n})-f(y_{n})\vert \geq \epsilon _{0} $. Therefore you can't put $ x_{n}=\dfrac{1}{2n} $ and $ y_{n}=\dfrac{1}{3n} $ and like this. Actually it is not needed for the proof.